C++: Remove redundant check.

This commit is contained in:
Geoffrey White
2020-12-14 17:16:16 +00:00
parent 3bef0e5c00
commit f9a7322d68

View File

@@ -29,7 +29,6 @@ private class MemberSwap extends TaintFunction, MemberFunction {
MemberSwap() {
this.hasName("swap") and
this.getNumberOfParameters() = 1 and
this.getParameter(0).getType() instanceof ReferenceType and
this.getParameter(0).getType().(ReferenceType).getBaseType().getUnspecifiedType() =
getDeclaringType()
}