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+loger...@ok.de> AuthorDate: Sun Jul 29 13:51:47 2018 +0200 Commit: Jochen Nitschke <j.nitschke+loger...@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.gran...@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Jochen Nitschke <j.nitschke+loger...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits