summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-27 15:28:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-27 15:30:59 +0200
commitbadc69d73ae2da5ddc68d93a3e327104253a0598 (patch)
tree5d35b2df8fe3eb814528217a254d52a8b88fe239 /reportdesign
parent378dd762ee6e77fcc8aa27d9b24e35424f2dcf28 (diff)
More loplugin:simplifybool
Change-Id: I58a6d08f0a6583b5e50ffc5b003313857dfb97ff
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/SectionView.cxx2
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/SectionView.cxx b/reportdesign/source/ui/report/SectionView.cxx
index bbbbf20dcc23..423396e6b556 100644
--- a/reportdesign/source/ui/report/SectionView.cxx
+++ b/reportdesign/source/ui/report/SectionView.cxx
@@ -223,7 +223,7 @@ bool OSectionView::IsDragResize() const
if (pDragMethod)
{
bool bMoveOnly = pDragMethod->getMoveOnly();
- if (bMoveOnly == false)
+ if (!bMoveOnly)
{
// current marked components will be resized
return true;
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx
index 30d690c799da..9a7afeeae66c 100644
--- a/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -1239,7 +1239,7 @@ void OViewsWindow::EndDragObj(bool _bControlKeyPressed, const OSectionView* _pSe
Point aNewPos = _aPnt;
OSectionView* pInSection = getSectionRelativeToPosition(_pSection, aNewPos);
if (!_bControlKeyPressed &&
- (_pSection && ( _pSection->IsDragResize() == false ) ) && /* Not in resize mode */
+ _pSection && !_pSection->IsDragResize() && /* Not in resize mode */
_pSection != pInSection)
{
EndDragObj_removeInvisibleObjects();