Skip to content

Commit db85a21

Browse files
committed
C++: fix alias model for smart pointer setters
1 parent e590a7b commit db85a21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/SmartPointer.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ private class SmartPtrSetterFunction extends MemberFunction, AliasFunction, Side
146146
}
147147

148148
private FunctionInput getPointerInput() {
149-
exists(Parameter param0 |
150-
param0 = this.getParameter(0) and
149+
exists(Parameter param0 | param0 = this.getParameter(0) |
151150
(
152151
param0.getUnspecifiedType().(ReferenceType).getBaseType() instanceof SmartPtr and
153152
if this.getParameter(1).getUnspecifiedType() instanceof PointerType

0 commit comments

Comments
 (0)