Skip to content
Snippets Groups Projects
Commit 9bf98fd0 authored by Virgile Prevosto's avatar Virgile Prevosto
Browse files

[fix-warning] more robust test for ending iteration

parent b7c8d25e
No related branches found
No related tags found
No related merge requests found
......@@ -434,7 +434,9 @@ public:
currentClassInfoIter = _currentClassInfo.begin(),
currentClassInfoIterEnd = _currentClassInfo.end();
bool hasResult = false;
for (; !hasResult && currentClassIter != currentClassIterEnd;
for (; !hasResult &&
currentClassIter != currentClassIterEnd &&
currentClassInfoIter != currentClassInfoIterEnd;
++currentClassIter, ++currentClassInfoIter) {
if (*currentClassIter == derived) {
hasResult = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment