mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
C++: Remove redundant check.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user