[Libreoffice-commits] core.git: sc/source writerfilter/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Nov 12 05:13:46 UTC 2018
sc/source/ui/unoobj/cellsuno.cxx | 2 +-
sc/source/ui/view/cellsh1.cxx | 2 +-
writerfilter/source/dmapper/CellColorHandler.cxx | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 270e76f6eba44749743761c5575adf9f08e84675
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon Nov 12 00:27:02 2018 +0300
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Mon Nov 12 06:13:26 2018 +0100
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: Ifb3c9016019977aa2c51dbd0a0394a0f81150df5
Reviewed-on: https://gerrit.libreoffice.org/63270
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 15d5a9b2853c..5d318c0d3696 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -8269,7 +8269,7 @@ void ScTableSheetObj::SetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
else if ( pEntry->nWID == SC_WID_UNO_CODENAME )
{
OUString aCodeName;
- if ( pDocSh && ( aValue >>= aCodeName ) )
+ if (aValue >>= aCodeName)
{
pDocSh->GetDocument().SetCodeName( GetTab_Impl(), aCodeName );
}
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index c57d3e75ac98..0005ae903d63 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1370,7 +1370,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
// if ChangeTrack MoveMode disable
pDlg->SetChangeTrack( pDoc->GetChangeTrack() != nullptr );
// fdo#56098 disable shift if necessary
- if ( !bOtherDoc && pOwnClip )
+ if (!bOtherDoc)
{
ScViewData* pData = GetViewData();
if ( pData->GetMarkData().GetTableSelect( pData->GetTabNo() ) )
diff --git a/writerfilter/source/dmapper/CellColorHandler.cxx b/writerfilter/source/dmapper/CellColorHandler.cxx
index f3e63a4faef2..41248036ae40 100644
--- a/writerfilter/source/dmapper/CellColorHandler.cxx
+++ b/writerfilter/source/dmapper/CellColorHandler.cxx
@@ -280,7 +280,7 @@ TablePropertyMapPtr CellColorHandler::getProperties()
{
if (nWW8BrushStyle || !m_bAutoFillColor)
pPropertyMap->Insert(PROP_FILL_STYLE, uno::makeAny(drawing::FillStyle_SOLID));
- else if ( m_bFillSpecified && m_bAutoFillColor )
+ else if (m_bFillSpecified) // m_bAutoFillColor == true
pPropertyMap->Insert(PROP_FILL_STYLE, uno::makeAny(drawing::FillStyle_NONE));
pPropertyMap->Insert(PROP_FILL_COLOR, uno::makeAny(nApplyColor));
More information about the Libreoffice-commits
mailing list