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

Skip to content

Commit e7d9953

Browse files
committed
C++: Address review.
1 parent 84fe7ba commit e7d9953

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,11 @@ class CastNode extends ConversionNode {
345345
* A node representing a `StmtExpr`.
346346
*/
347347
class StmtExprNode extends ExprNode {
348-
StmtExpr stmtExpr;
349-
350-
StmtExprNode() { stmtExpr = expr }
348+
override StmtExpr expr;
351349

352350
override ASTNode getChildInternal(int childIndex) {
353351
childIndex = 0 and
354-
result.getAST() = stmtExpr.getStmt()
352+
result.getAST() = expr.getStmt()
355353
}
356354
}
357355

0 commit comments

Comments
 (0)