Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ab892ca

Browse filesBrowse files
Update cpp/autosar/src/rules/M9-3-3/MemberFunctionConstIfPossible.ql
Co-authored-by: Remco Vermeulen <rvermeulen@users.noreply.github.com>
1 parent a9e6e83 commit ab892ca
Copy full SHA for ab892ca

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: cpp/autosar/src/rules/M9-3-3/MemberFunctionConstIfPossible.ql
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.