diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-03-06 09:59:45 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2016-03-06 09:59:45 +0100 |
commit | dff052784ec1d40bf15f0babb669b739d1be8e12 (patch) | |
tree | 5404bde6b8dd63fd30d63b35226758400496ff91 | |
parent | 025cf075c16778a1c5d46d9ef273ee08505e3858 (diff) |
cppcheck: fix redundantCondition
Change-Id: I4b8883ae7e0bf0990ae8736dba598ab3943ad401
-rw-r--r-- | sw/source/core/edit/edsect.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/edit/edsect.cxx b/sw/source/core/edit/edsect.cxx index 060a26872ee8..833fc1f53a31 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; } } |