[Libreoffice-commits] core.git: sw/source

Julien Nabet serval2412 at yahoo.fr
Sun Mar 6 09:00:17 UTC 2016


 sw/source/core/edit/edsect.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit dff052784ec1d40bf15f0babb669b739d1be8e12
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Mar 6 09:59:45 2016 +0100

    cppcheck: fix redundantCondition
    
    Change-Id: I4b8883ae7e0bf0990ae8736dba598ab3943ad401

diff --git a/sw/source/core/edit/edsect.cxx b/sw/source/core/edit/edsect.cxx
index 060a268..833fc1f 100644
--- a/sw/source/core/edit/edsect.cxx
+++ b/sw/source/core/edit/edsect.cxx
@@ -127,8 +127,7 @@ bool SwEditShell::IsAnySectionInDoc( bool bChkReadOnly ) const
                && TOX_HEADER_SECTION != eTmpType ) )
         {
             const SwSection& rSect = *pFormat->GetSection();
-            if( !bChkReadOnly ||
-                (bChkReadOnly && rSect.IsProtectFlag() ) )
+            if( !bChkReadOnly || rSect.IsProtectFlag() )
                 return true;
         }
     }


More information about the Libreoffice-commits mailing list