We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454dd0a commit b38e43eCopy full SHA for b38e43e
lib/checkassert.cpp
@@ -81,7 +81,7 @@ void CheckAssert::assertWithSideEffects()
81
82
bool noReturnInScope = true;
83
for (std::vector<const Token*>::iterator rt = returnTokens.begin(); rt != returnTokens.end(); ++rt) {
84
- if (!inSameScope(*rt, tok2)) {
+ if (inSameScope(*rt, tok2)) {
85
noReturnInScope = false;
86
break;
87
}
0 commit comments