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

Skip to content

Commit bccdf59

Browse files
author
Max Schaefer
committed
C++: Remove an unecessary unresolveElement.
As far as I can see, `@file` is not a `@usertype`, so this shouldn't be needed.
1 parent ef453db commit bccdf59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/src/semmle/code/cpp/XML.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ abstract class XMLLocatable extends @xmllocatable {
2020
string filepath, int startline, int startcolumn, int endline, int endcolumn
2121
) {
2222
exists(File f, Location l | l = this.getLocation() |
23-
locations_default(l, unresolveElement(f), startline, startcolumn, endline, endcolumn) and
23+
locations_default(l, f, startline, startcolumn, endline, endcolumn) and
2424
filepath = f.getAbsolutePath()
2525
)
2626
}

0 commit comments

Comments
 (0)