Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9a7322

Browse files
committed
C++: Remove redundant check.
1 parent 3bef0e5 commit f9a7322

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • cpp/ql/src/semmle/code/cpp/models/implementations

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ private class MemberSwap extends TaintFunction, MemberFunction {
2929
MemberSwap() {
3030
this.hasName("swap") and
3131
this.getNumberOfParameters() = 1 and
32-
this.getParameter(0).getType() instanceof ReferenceType and
3332
this.getParameter(0).getType().(ReferenceType).getBaseType().getUnspecifiedType() =
3433
getDeclaringType()
3534
}

0 commit comments

Comments
 (0)