Skip to content

Commit ea2140d

Browse files
alexetMathiasVP
andauthored
Apply suggestions from code review
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 8badf10 commit ea2140d

File tree

1 file changed

+3
-3
lines changed
  • cpp/ql/lib/semmle/code/cpp/exprs

1 file changed

+3
-3
lines changed

cpp/ql/lib/semmle/code/cpp/exprs/Expr.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ class DeleteOrDeleteArrayExpr extends Expr, TDeleteOrDeleteArrayExpr {
949949
DestructorCall getDestructorCall() { result = this.getChild(1) }
950950

951951
/**
952-
* Gets the destructor to be called to destroy the object/array, if any.
952+
* Gets the destructor to be called to destroy the object or array, if any.
953953
*/
954954
Destructor getDestructor() { result = this.getDestructorCall().getTarget() }
955955

@@ -997,10 +997,10 @@ class DeleteOrDeleteArrayExpr extends Expr, TDeleteOrDeleteArrayExpr {
997997
}
998998

999999
/**
1000-
* Gets the object/array being deleted.
1000+
* Gets the object or array being deleted.
10011001
*/
10021002
Expr getExpr() {
1003-
// If there is a destuctor call, the object being deleted is the qualifier
1003+
// If there is a destructor call, the object being deleted is the qualifier
10041004
// otherwise it is the third child.
10051005
result = this.getChild(3) or result = this.getDestructorCall().getQualifier()
10061006
}

0 commit comments

Comments
 (0)