diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:33:49 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:29 +0200 |
commit | 24df2bd5cb68f8de5e22a27f6a3505d099bc3581 (patch) | |
tree | 1b7d12fd9658bd0942c350d86f4ddda3f69b2a3f /svx/source/dialog/svxruler.cxx | |
parent | b0d9184ad2dab26e7ee17d8c0ace9f5e5e753026 (diff) |
loplugin:simplifybool
Change-Id: I02bc964fd2b240fb5238e3de72239d410587ae5c
Diffstat (limited to 'svx/source/dialog/svxruler.cxx')
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index c0e565c1ec70..9c8146dd2ba8 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -2348,7 +2348,7 @@ void SvxRuler::ApplyBorders() #endif // DEBUGLIN SfxBoolItem aFlag(SID_RULER_ACT_LINE_ONLY, - nDragType & DRAG_OBJECT_ACTLINE_ONLY ? true : false); + (nDragType & DRAG_OBJECT_ACTLINE_ONLY) != 0); sal_uInt16 nColId = mxRulerImpl->bIsTableRows ? (bHorz ? SID_RULER_ROWS : SID_RULER_ROWS_VERTICAL) : (bHorz ? SID_RULER_BORDERS : SID_RULER_BORDERS_VERTICAL); @@ -3021,7 +3021,7 @@ void SvxRuler::CalcMinMax() { if(mxObjectItem->HasLimits()) { - if(CalcLimits(nMaxLeft, nMaxRight, nIdx & 1? false : true)) + if(CalcLimits(nMaxLeft, nMaxRight, (nIdx & 1) == 0)) { nMaxLeft = ConvertPosPixel(nMaxLeft); nMaxRight = ConvertPosPixel(nMaxRight); |