[Libreoffice-commits] core.git: sc/source sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Jul 29 14:25:34 UTC 2018
sc/source/ui/docshell/docfunc.cxx | 8 ++++----
sw/source/filter/html/swhtml.cxx | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 465084267d99fb7f38296609dbb7c46460fe2144
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
AuthorDate: Sun Jul 29 13:51:47 2018 +0200
Commit: Jochen Nitschke <j.nitschke+logerrit at ok.de>
CommitDate: Sun Jul 29 16:25:13 2018 +0200
cppcheck: knownConditionTrueFalse
Change-Id: I531667ef580bfa81126cdb3a8d227c9e8783e02c
Reviewed-on: https://gerrit.libreoffice.org/58279
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
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;
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index f8543d6f601c..e48b55471639 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -2231,7 +2231,7 @@ bool SwHTMLParser::AppendTextNode( SwHTMLAppendMode eMode, bool bUpdateNum )
lcl_swhtml_getItemInfo( *pAttr, bScript, bFont,
nScriptItem );
// set previous part
- if( bInsert && bScript )
+ if( bScript )
{
const SwTextNode *pTextNd =
pAttr->GetSttPara().GetNode().GetTextNode();
More information about the Libreoffice-commits
mailing list