Skip to content

Commit 33b5802

Browse files
committed
C++: Update StdPair.qll (just for consistency).
1 parent 02578cf commit 33b5802

File tree

1 file changed

+4
-4
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import semmle.code.cpp.models.interfaces.Taint
77
/**
88
* An instantiation of `std::pair<T1, T2>`.
99
*/
10-
class StdPairClass extends ClassTemplateInstantiation {
11-
StdPairClass() { getTemplate().hasQualifiedName("std", "pair") }
10+
class StdPair extends ClassTemplateInstantiation {
11+
StdPair() { this.hasQualifiedName("std", "pair") }
1212
}
1313

1414
/**
@@ -18,9 +18,9 @@ class StdPairClass extends ClassTemplateInstantiation {
1818
*/
1919
class StdPairCopyishConstructor extends Constructor, TaintFunction {
2020
StdPairCopyishConstructor() {
21-
this.getDeclaringType() instanceof StdPairClass and
21+
this.getDeclaringType() instanceof StdPair and
2222
this.getNumberOfParameters() = 1 and
23-
this.getParameter(0).getUnspecifiedType().(ReferenceType).getBaseType() instanceof StdPairClass
23+
this.getParameter(0).getUnspecifiedType().(ReferenceType).getBaseType() instanceof StdPair
2424
}
2525

2626
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {

0 commit comments

Comments
 (0)