diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-10 11:56:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-10 11:56:29 +0100 |
commit | a95b58060b01046a8881e97e0c5016e44200dd32 (patch) | |
tree | 85bad0884f99325f2f89e8017a365ad19a53b6fe /sc | |
parent | 5c8a3bfc7e42009a7eaa6353cf2f66a14bfdab76 (diff) |
loplugin:implicitboolconversion, loplugin:literaltoboolconversion
Change-Id: I5940b122d3ed6e2d6464e407e592c4810499ff1f
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/detfunc.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index 55a3dea531cb..0ccd6960a0fe 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -679,7 +679,7 @@ void ScDetectiveFunc::DeleteArrowsAt( SCCOL nCol, SCROW nRow, bool bDestPnt ) if ( pObject->GetLayer()==SC_LAYER_INTERN && pObject->IsPolyObj() && pObject->GetPointCount()==2 ) { - if (aRect.IsInside(pObject->GetPoint(bDestPnt))) // Start/Zielpunkt + if (aRect.IsInside(pObject->GetPoint(bDestPnt ? 1 : 0))) // Start/Zielpunkt ppObj[nDelCount++] = pObject; } @@ -1485,9 +1485,9 @@ void ScDetectiveFunc::UpdateAllArrowColors() ScAddress aErrPos; if ( HasError( aSource, aErrPos ) ) - bError = sal_True; + bError = true; else - bArrow = sal_True; + bArrow = true; } else if ( eType == SC_DETOBJ_FROMOTHERTAB ) { @@ -1497,15 +1497,15 @@ void ScDetectiveFunc::UpdateAllArrowColors() ScAddress aErrPos; if ( HasError( ScRange( aPos), aErrPos ) ) - bError = sal_True; + bError = true; else - bArrow = sal_True; + bArrow = true; } else if ( eType == SC_DETOBJ_CIRCLE ) { // circles (error marks) are always red - bError = sal_True; + bError = true; } else if ( eType == SC_DETOBJ_NONE ) { @@ -1513,7 +1513,7 @@ void ScDetectiveFunc::UpdateAllArrowColors() if ( pObject->ISA( SdrRectObj ) && !pObject->ISA( SdrCaptionObj ) ) { - bArrow = sal_True; + bArrow = true; } } |