Skip to content

Commit 644d0ff

Browse files
committed
Merge branch 'knewbury01/fix-381' of https://github.com/knewbury01/codeql-coding-standards into knewbury01/fix-381
2 parents 7f2099f + ab892ca commit 644d0ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/autosar/src/rules/M9-3-3/MemberFunctionConstIfPossible.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ConstMemberFunctionCandidate extends NonConstMemberFunction {
6565
// For uninstantiated templates we have only partial information that prevents us from determining
6666
// if the candidate calls non-const functions. Therefore we exclude these.
6767
not this.isFromUninstantiatedTemplate(_) and
68-
//cannot recommend const if it returns a nonconst reference
68+
// Cannot recommend const if it returns a non-const reference.
6969
not this.getType() instanceof NonConstReferenceType
7070
}
7171

0 commit comments

Comments
 (0)