Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bef0e5 commit f9a7322Copy full SHA for f9a7322
1 file changed
cpp/ql/src/semmle/code/cpp/models/implementations/Swap.qll
@@ -29,7 +29,6 @@ private class MemberSwap extends TaintFunction, MemberFunction {
29
MemberSwap() {
30
this.hasName("swap") and
31
this.getNumberOfParameters() = 1 and
32
- this.getParameter(0).getType() instanceof ReferenceType and
33
this.getParameter(0).getType().(ReferenceType).getBaseType().getUnspecifiedType() =
34
getDeclaringType()
35
}
0 commit comments