Skip to content

Commit 581266c

Browse files
committed
CPP: Alternative fix.
1 parent 79e01a2 commit 581266c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/commons/Printf.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class FormatLiteral extends Literal {
250250
* Microsoft rules and extensions.
251251
*/
252252
predicate isMicrosoft() {
253-
getFile().compiledAsMicrosoft()
253+
any(File f).compiledAsMicrosoft()
254254
}
255255

256256
/**

cpp/ql/src/semmle/code/cpp/models/interfaces/FormattingFunction.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ abstract class FormattingFunction extends Function {
5151
* Microsoft rules and extensions.
5252
*/
5353
predicate isMicrosoft() {
54-
getFile().compiledAsMicrosoft()
54+
any(File f).compiledAsMicrosoft()
5555
}
5656

5757
/**

0 commit comments

Comments
 (0)