diff options
author | Marc Mutz <marc.mutz@qt.io> | 2021-12-23 18:10:26 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2021-12-28 23:09:41 +0100 |
commit | 1181af9452b8cf41e410e78fd570d15c44bc8fa0 (patch) | |
tree | 281a90f8dece5e458f2bdc264efefe65d7628148 /src/gui/itemmodels | |
parent | a6bca753c9d7167088839b0fd047df9e7eb6ed35 (diff) |
Eradicate Q_FOREVER from header files
The qgenericatomic.h occurrences are getting in the way of splitting
up qglobal.h, so inline the define.
Task-number: QTBUG-99313
Change-Id: I0d6e3553c5ed4ac9e426bef2fe07d2672d73c671
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/itemmodels')
-rw-r--r-- | src/gui/itemmodels/qstandarditemmodel_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemmodels/qstandarditemmodel_p.h b/src/gui/itemmodels/qstandarditemmodel_p.h index 8a9a2c8d50..2ce640679a 100644 --- a/src/gui/itemmodels/qstandarditemmodel_p.h +++ b/src/gui/itemmodels/qstandarditemmodel_p.h @@ -137,7 +137,7 @@ public: // backwards through the children int backwardIter = childsLastIndexInParent - 1; int forwardIter = childsLastIndexInParent; - Q_FOREVER { + for (;;) { if (forwardIter <= lastChild) { if (children.at(forwardIter) == child) { childsLastIndexInParent = forwardIter; |