Skip to content

Commit 415516c

Browse files
Update checkclass.cpp
1 parent 73682da commit 415516c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checkclass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ void CheckClass::checkConst()
21752175
continue;
21762176

21772177
const bool suggestStatic = memberAccessed != MemberAccess::MEMBER && !func.isOperator();
2178-
if ((returnsPtrOrRef || func.isConst()) && !suggestStatic)
2178+
if ((returnsPtrOrRef || func.isConst() || func.hasLvalRefQualifier()) && !suggestStatic)
21792179
continue;
21802180

21812181
std::string classname = scope->className;

0 commit comments

Comments
 (0)