diff --git a/cpp/ql/src/Documentation/CommentedOutCode.qll b/cpp/ql/src/Documentation/CommentedOutCode.qll index c1097701bef7..3ecdb1a3252d 100644 --- a/cpp/ql/src/Documentation/CommentedOutCode.qll +++ b/cpp/ql/src/Documentation/CommentedOutCode.qll @@ -119,7 +119,7 @@ class CommentBlock extends Comment { */ predicate hasLocationInfo(string filepath, int startline, int startcolumn, int endline, int endcolumn) { this.getLocation().hasLocationInfo(filepath, startline, startcolumn, _, _) and - this.lastComment().getLocation().hasLocationInfo(filepath, _, _, endline, endcolumn) + this.lastComment().getLocation().hasLocationInfo(_, _, _, endline, endcolumn) } }