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

Skip to content

Commit 4a07912

Browse files
authored
C++: Small code improvement.
1 parent 595bb02 commit 4a07912

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ private class MapOrUnorderedMap extends Class {
1616
* Additional model for map constructors using iterator inputs.
1717
*/
1818
private class StdMapConstructor extends Constructor, TaintFunction {
19-
StdMapConstructor() {
20-
this.hasQualifiedName(["std", "bsl"], "map", "map") or
21-
this.hasQualifiedName(["std", "bsl"], "unordered_map", "unordered_map")
22-
}
19+
StdMapConstructor() { this.getDeclaringType() instanceof MapOrUnorderedMap }
2320

2421
/**
2522
* Gets the index of a parameter to this function that is an iterator.

0 commit comments

Comments
 (0)