summaryrefslogtreecommitdiff
path: root/sw/source/core/edit
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-03-06 09:59:45 +0100
committerJulien Nabet <serval2412@yahoo.fr>2016-03-06 09:59:45 +0100
commitdff052784ec1d40bf15f0babb669b739d1be8e12 (patch)
tree5404bde6b8dd63fd30d63b35226758400496ff91 /sw/source/core/edit
parent025cf075c16778a1c5d46d9ef273ee08505e3858 (diff)
cppcheck: fix redundantCondition
Change-Id: I4b8883ae7e0bf0990ae8736dba598ab3943ad401
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r--sw/source/core/edit/edsect.cxx3
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;
}
}