From 447a013299d148df12ff17306fff77bb7f85eba1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 19 Apr 2017 13:13:16 +0200 Subject: clang-tidy readability-simplify-boolean-expr in dbaccess..framework Change-Id: I96e1bd4000f4ade6ccfac53c57653772b249df99 Reviewed-on: https://gerrit.libreoffice.org/36678 Tested-by: Jenkins Reviewed-by: Noel Grandin --- forms/source/runtime/formoperations.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'forms/source/runtime') diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx index 4365661b9c60..665c61a8631f 100644 --- a/forms/source/runtime/formoperations.cxx +++ b/forms/source/runtime/formoperations.cxx @@ -486,10 +486,7 @@ namespace frm } } - if(!commit1Form(xCntrl, needConfirmation, shouldCommit)) - return false; - - return true; + return commit1Form(xCntrl, needConfirmation, shouldCommit); } bool commit1Form(const Reference< XForm >& xFrm, bool &needConfirmation, bool &shouldCommit) @@ -531,10 +528,7 @@ namespace frm } } - if(!commit1Form(xFrm, needConfirmation, shouldCommit)) - return false; - - return true; + return commit1Form(xFrm, needConfirmation, shouldCommit); } } -- cgit