Skip to content

Commit eb1472f

Browse files
Remove redundant constness check
1 parent 0f12688 commit eb1472f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cpp/misra/src/rules/RULE-10-1-1/PointerOrRefParamNotConst.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ predicate isInTemplateScope(Function f) {
3737
class PointerLikeParam extends Parameter {
3838
PointerLikeType pointerLikeType;
3939

40-
PointerLikeParam() {
41-
pointerLikeType = this.getType() and
42-
not pointerLikeType.pointsToConst()
43-
}
40+
PointerLikeParam() { pointerLikeType = this.getType() }
4441

4542
/**
4643
* Gets the pointer like type of this parameter.

0 commit comments

Comments
 (0)