Skip to content

Commit e7e52bb

Browse files
committed
Undo
1 parent 4d67e24 commit e7e52bb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/checkother.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,9 +1546,6 @@ void CheckOther::checkPassByReference()
15461546
if (!var || !var->isClass() || var->isPointer() || (var->isArray() && !var->isStlType()) || var->isReference() || var->isEnumType())
15471547
continue;
15481548

1549-
if (!var->scope())
1550-
continue;
1551-
15521549
const bool isRangeBasedFor = astIsRangeBasedForDecl(var->nameToken());
15531550
if (!var->isArgument() && !isRangeBasedFor)
15541551
continue;

0 commit comments

Comments
 (0)