Skip to content

Commit 4a1d04b

Browse files
C++: Fix deprecated predicate warnings
1 parent 4086a89 commit 4a1d04b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/PrintIR.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class PrintableFunctionIR extends PrintableIRNode, TPrintableFunctionIR {
8383
override int getOrder() {
8484
this = rank[result + 1](PrintableFunctionIR orderedFunc, Location location |
8585
location = orderedFunc.getFunctionIR().getLocation() |
86-
orderedFunc order by location.getFile().getURL(), location.getStartLine(),
86+
orderedFunc order by location.getFile().getAbsolutePath(), location.getStartLine(),
8787
location.getStartColumn(), orderedFunc.getLabel()
8888
)
8989
}

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/PrintIR.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class PrintableFunctionIR extends PrintableIRNode, TPrintableFunctionIR {
8383
override int getOrder() {
8484
this = rank[result + 1](PrintableFunctionIR orderedFunc, Location location |
8585
location = orderedFunc.getFunctionIR().getLocation() |
86-
orderedFunc order by location.getFile().getURL(), location.getStartLine(),
86+
orderedFunc order by location.getFile().getAbsolutePath(), location.getStartLine(),
8787
location.getStartColumn(), orderedFunc.getLabel()
8888
)
8989
}

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/PrintIR.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ class PrintableFunctionIR extends PrintableIRNode, TPrintableFunctionIR {
8383
override int getOrder() {
8484
this = rank[result + 1](PrintableFunctionIR orderedFunc, Location location |
8585
location = orderedFunc.getFunctionIR().getLocation() |
86-
orderedFunc order by location.getFile().getAbsolutePath(),
87-
location.getStartLine(),
86+
orderedFunc order by location.getFile().getAbsolutePath(), location.getStartLine(),
8887
location.getStartColumn(), orderedFunc.getLabel()
8988
)
9089
}

0 commit comments

Comments
 (0)