Update cpp/ql/src/semmle/code/cpp/models/implementations/StdContainer.qll

Co-authored-by: Jonas Jensen <jbj@github.com>
This commit is contained in:
Geoffrey White
2020-08-20 12:53:23 +01:00
committed by GitHub
parent 689c637d48
commit 258b61c5f8

View File

@@ -25,7 +25,7 @@ class StdSequenceContainerConstructor extends Constructor, TaintFunction {
* value type of the container.
*/
int getAValueTypeParameterIndex() {
getParameter(result).getType().getUnspecifiedType().(ReferenceType).getBaseType() =
getParameter(result).getUnspecifiedType().(ReferenceType).getBaseType() =
getDeclaringType().getTemplateArgument(0) // i.e. the `T` of this `std::vector<T>`
}