diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-21 15:45:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-22 07:44:16 +0100 |
commit | 640e03da110d76b2c7d5ed5b8b8ba3b4367865ba (patch) | |
tree | 79856af3daab1e809c388ac27aa2f3284842235c /chart2/source | |
parent | a0ebba3d8855fee0bcec04a10137ae3a4f9f0e77 (diff) |
loplugin:simplifybool re-activate the !! warning
Change-Id: Iac7d82a1c228734177be536e9a6c41803c03637b
Reviewed-on: https://gerrit.libreoffice.org/45035
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/main/UndoActions.cxx | 2 | ||||
-rw-r--r-- | chart2/source/controller/main/UndoGuard.cxx | 4 | ||||
-rw-r--r-- | chart2/source/view/charttypes/BarChart.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/main/UndoActions.cxx b/chart2/source/controller/main/UndoActions.cxx index c7cfb74587a7..6206430880b3 100644 --- a/chart2/source/controller/main/UndoActions.cxx +++ b/chart2/source/controller/main/UndoActions.cxx @@ -57,7 +57,7 @@ UndoElement::~UndoElement() void SAL_CALL UndoElement::disposing() { - if ( !!m_pModelClone ) + if ( m_pModelClone ) m_pModelClone->dispose(); m_pModelClone.reset(); m_xDocumentModel.clear(); diff --git a/chart2/source/controller/main/UndoGuard.cxx b/chart2/source/controller/main/UndoGuard.cxx index feaf9df8576a..4d7a85e8ad3a 100644 --- a/chart2/source/controller/main/UndoGuard.cxx +++ b/chart2/source/controller/main/UndoGuard.cxx @@ -45,13 +45,13 @@ UndoGuard::UndoGuard( const OUString& i_undoString, const uno::Reference< docume UndoGuard::~UndoGuard() { - if ( !!m_pDocumentSnapshot ) + if ( m_pDocumentSnapshot ) discardSnapshot(); } void UndoGuard::commit() { - if ( !m_bActionPosted && !!m_pDocumentSnapshot ) + if ( !m_bActionPosted && m_pDocumentSnapshot ) { try { diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx index 27634b283c7e..476dc39d36fb 100644 --- a/chart2/source/view/charttypes/BarChart.cxx +++ b/chart2/source/view/charttypes/BarChart.cxx @@ -139,7 +139,7 @@ awt::Point BarChart::getLabelScreenPositionAndAlignment( double fY = fScaledUpperYValue; double fZ = fScaledZ; bool bReverse = !pPosHelper->isMathematicalOrientationY(); - bool bNormalOutside = (!bReverse == !!(fBaseValue < fScaledUpperYValue)); + bool bNormalOutside = (!bReverse == (fBaseValue < fScaledUpperYValue)); double fDepth = fScaledUpperBarDepth; switch(nLabelPlacement) |