Make relation of currentChildBeingDeleted and isDeletingChildren more obvious

Add a comment, to describe the relation of
QObjectPrivate::currentChildBeingDeleted and
QObjectData::isDeletingChildren, given that this field is defined
in an entirely other file on a base-class, making it severely
non-obvious to the reader.

Task-number: QTBUG-57714
Change-Id: I7b8b24693c4ccc6192e9f9f34f951202b7fdddb0
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Bernhard Übelacker 2017-02-13 17:25:10 +01:00 committed by Edward Welbourne
parent 4bb64b0ee5
commit df57011bdc

View File

@ -234,7 +234,7 @@ public:
mutable quint32 connectedSignals[2];
union {
QObject *currentChildBeingDeleted;
QObject *currentChildBeingDeleted; // should only be used when QObjectData::isDeletingChildren is set
QAbstractDeclarativeData *declarativeData; //extra data used by the declarative module
};