Skip to content

Commit c0c1ab7

Browse files
committed
C++: Fix code scanning warnings.
1 parent 31a246b commit c0c1ab7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ class DataFlowCallable extends TDataFlowCallable {
10341034
* A source callable, conceptually, a function in the source code for the
10351035
* purpose of computing data flow. In practice this excludes functions that
10361036
* are summarized using models-as-data (as we don't want to create
1037-
* unmodelled flows or duplicate paths), and includes variables (for reasons
1037+
* unmodeled flows or duplicate paths), and includes variables (for reasons
10381038
* explained in `DataFlowCallable`).
10391039
*/
10401040
private class SourceCallable extends DataFlowCallable, TSourceCallable {
@@ -1298,7 +1298,7 @@ predicate allowParameterReturnInSelf(ParameterNode p) {
12981298
or
12991299
// models-as-data summarized flow
13001300
exists(DataFlowCallable c, ParameterPosition pos |
1301-
p.(ParameterNode).isParameterOf(c, pos) and
1301+
p.isParameterOf(c, pos) and
13021302
FlowSummaryImpl::Private::summaryAllowParameterReturnInSelf(c.asSummarizedCallable(), pos)
13031303
)
13041304
}

0 commit comments

Comments
 (0)