loplugin:useuniqueptr fix check for DELETEZ inside compound stmt
Change-Id: Id748b8b0c9cfe8c288dfafb5d0c2a83a8de2c91c Reviewed-on: https://gerrit.libreoffice.org/57871 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -228,7 +228,7 @@ void UseUniquePtr::CheckForSimpleDelete(const CXXMethodDecl* methodDecl, const C
|
||||
auto ifDeleteExpr = dyn_cast<CXXDeleteExpr>(*j);
|
||||
if (ifDeleteExpr)
|
||||
CheckDeleteExpr(methodDecl, ifDeleteExpr);
|
||||
ParenExpr const * parenExpr = dyn_cast<ParenExpr>(*i);
|
||||
ParenExpr const * parenExpr = dyn_cast<ParenExpr>(*j);
|
||||
if (parenExpr)
|
||||
CheckParenExpr(methodDecl, parenExpr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user