summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-26 12:07:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-27 07:35:11 +0100
commit4d502ef3559f53d75e4ee3c85b90ea36816049e8 (patch)
tree6fc23dab1ded365962295c5a3fdf498c726853f3 /sw
parent19240f625f8bd7b772481abc8e678d7b0fadd921 (diff)
loplugin:simplifybool improve search for negated operator
Change-Id: Id6ac35fefa5c3e1f64c222713791e849b3cb4d34 Reviewed-on: https://gerrit.libreoffice.org/68379 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoframe.cxx2
-rw-r--r--sw/source/core/unocore/unostyle.cxx2
-rw-r--r--sw/source/filter/html/htmlforw.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index 0ca98cda81e5..01a9f3790bf4 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1773,7 +1773,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any&
aChangedBrushItem.PutValue(aValue, nMemberId);
- if(!(aChangedBrushItem == aOriginalBrushItem))
+ if(aChangedBrushItem != aOriginalBrushItem)
{
setSvxBrushItemAsFillAttributesToTargetSet(aChangedBrushItem, aSet);
pFormat->GetDoc()->SetFlyFrameAttr( *pFormat, aSet );
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 74fb4be9512c..2a3f9e228275 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -3645,7 +3645,7 @@ uno::Reference< style::XAutoStyle > SwXAutoStyleFamily::insertStyle(
aChangedBrushItem.PutValue(aValue, nMemberId);
- if(!(aChangedBrushItem == aOriginalBrushItem))
+ if(aChangedBrushItem != aOriginalBrushItem)
{
setSvxBrushItemAsFillAttributesToTargetSet(aChangedBrushItem, aSet);
}
diff --git a/sw/source/filter/html/htmlforw.cxx b/sw/source/filter/html/htmlforw.cxx
index 573663220d3a..88c6cabe2bd0 100644
--- a/sw/source/filter/html/htmlforw.cxx
+++ b/sw/source/filter/html/htmlforw.cxx
@@ -325,7 +325,7 @@ void SwHTMLWriter::OutForm( bool bTag_On, const SwStartNode *pStartNd )
}
if( xNewFormComps.is() &&
- (!mxFormComps.is() || !(xNewFormComps == mxFormComps)) )
+ (!mxFormComps.is() || xNewFormComps != mxFormComps) )
{
// A form should be opened ...
if( mxFormComps.is() )