Skip to content

Commit 68b4733

Browse files
committed
C++: Fix QL-on-QL Redundant Cast warning
1 parent 2a04635 commit 68b4733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/Best Practices/Likely Errors/CommaBeforeMisleadingIndentation.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ predicate isCompilerGenerated(ThisExpr te) {
2828

2929
/** Gets the sub-expression of 'e' with the earliest-starting Location */
3030
Expr normalizeExpr(Expr e) {
31-
if forex(Expr q | q = e.(Call).getQualifier() | not isCompilerGenerated(q.(ThisExpr)))
31+
if forex(Expr q | q = e.(Call).getQualifier() | not isCompilerGenerated(q))
3232
then result = normalizeExpr(e.(Call).getQualifier())
3333
else
34-
if forex(Expr q | q = e.(FieldAccess).getQualifier() | not isCompilerGenerated(q.(ThisExpr)))
34+
if forex(Expr q | q = e.(FieldAccess).getQualifier() | not isCompilerGenerated(q))
3535
then result = normalizeExpr(e.(FieldAccess).getQualifier())
3636
else
3737
if e.hasExplicitConversion()

0 commit comments

Comments
 (0)