Skip to content

Commit ab892ca

Browse files
Update cpp/autosar/src/rules/M9-3-3/MemberFunctionConstIfPossible.ql
Co-authored-by: Remco Vermeulen <[email protected]>
1 parent a9e6e83 commit ab892ca

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

Lines changed: 1 addition & 1 deletion
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)