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

New commits:
commit dff052784ec1d40bf15f0babb669b739d1be8e12
Author: Julien Nabet <serval2...@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;
         }
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to