summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-07-29 13:51:47 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2018-07-29 16:25:13 +0200
commit465084267d99fb7f38296609dbb7c46460fe2144 (patch)
tree3a11133ca5db9473145f87b7d7fd0b06005a2ff7 /sc
parent072f5f01b2d089ddeb763c2dd62febe926935a71 (diff)
cppcheck: knownConditionTrueFalse
Change-Id: I531667ef580bfa81126cdb3a8d227c9e8783e02c Reviewed-on: https://gerrit.libreoffice.org/58279 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 3570f4730ed2..d364a03fead4 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -709,7 +709,7 @@ bool ScDocFunc::TransliterateText( const ScMarkData& rMark, TransliterationFlags
ScDocument& rDoc = rDocShell.GetDocument();
bool bRecord = true;
- if (bRecord && !rDoc.IsUndoEnabled())
+ if (!rDoc.IsUndoEnabled())
bRecord = false;
ScEditableTester aTester( &rDoc, rMark );
@@ -1310,7 +1310,7 @@ bool ScDocFunc::ApplyAttributes( const ScMarkData& rMark, const ScPatternAttr& r
{
ScDocument& rDoc = rDocShell.GetDocument();
bool bRecord = true;
- if ( bRecord && !rDoc.IsUndoEnabled() )
+ if ( !rDoc.IsUndoEnabled() )
bRecord = false;
bool bImportingXML = rDoc.IsImportingXML();
@@ -1379,7 +1379,7 @@ bool ScDocFunc::ApplyStyle( const ScMarkData& rMark, const OUString& rStyleName,
{
ScDocument& rDoc = rDocShell.GetDocument();
bool bRecord = true;
- if ( bRecord && !rDoc.IsUndoEnabled() )
+ if ( !rDoc.IsUndoEnabled() )
bRecord = false;
bool bImportingXML = rDoc.IsImportingXML();
@@ -2187,7 +2187,7 @@ bool ScDocFunc::DeleteCells( const ScRange& rRange, const ScMarkData* pTabMark,
PaintPartFlags nPaintFlags = PaintPartFlags::Grid;
bool bRecord = true;
- if (bRecord && !rDoc.IsUndoEnabled())
+ if (!rDoc.IsUndoEnabled())
bRecord = false;
ScMarkData aMark;