summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:33:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:29 +0200
commit24df2bd5cb68f8de5e22a27f6a3505d099bc3581 (patch)
tree1b7d12fd9658bd0942c350d86f4ddda3f69b2a3f /svx/source/unodraw
parentb0d9184ad2dab26e7ee17d8c0ace9f5e5e753026 (diff)
loplugin:simplifybool
Change-Id: I02bc964fd2b240fb5238e3de72239d410587ae5c
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/unoshap2.cxx4
-rw-r--r--svx/source/unodraw/unoshtxt.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index 9a9a2ccb4eaa..ccd5515e69d9 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -1876,7 +1876,7 @@ void SAL_CALL SvxCustomShape::setPropertyValue( const OUString& aPropertyName, c
pObject->NbcMirror( aTop, aBottom );
// NbcMirroring is flipping the current mirror state,
// so we have to set the correct state again
- static_cast<SdrObjCustomShape*>(pObject)->SetMirroredX( bMirroredX ? false : true );
+ static_cast<SdrObjCustomShape*>(pObject)->SetMirroredX( !bMirroredX );
}
if ( bNeedsMirrorY )
{
@@ -1885,7 +1885,7 @@ void SAL_CALL SvxCustomShape::setPropertyValue( const OUString& aPropertyName, c
pObject->NbcMirror( aLeft, aRight );
// NbcMirroring is flipping the current mirror state,
// so we have to set the correct state again
- static_cast<SdrObjCustomShape*>(pObject)->SetMirroredY( bMirroredY ? false : true );
+ static_cast<SdrObjCustomShape*>(pObject)->SetMirroredY( !bMirroredY );
}
if( pListCopy )
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx
index d2ffe9d53bc6..1850e1d394f3 100644
--- a/svx/source/unodraw/unoshtxt.cxx
+++ b/svx/source/unodraw/unoshtxt.cxx
@@ -112,7 +112,7 @@ private:
void SetupOutliner();
- bool HasView() const { return mpView ? true : false; }
+ bool HasView() const { return mpView != nullptr; }
bool IsEditMode() const
{
SdrTextObj* pTextObj = PTR_CAST( SdrTextObj, mpObject );
@@ -921,7 +921,7 @@ void SvxTextEditSourceImpl::unlock()
bool SvxTextEditSourceImpl::IsValid() const
{
- return mpView && mpWindow ? true : false;
+ return mpView && mpWindow;
}
Rectangle SvxTextEditSourceImpl::GetVisArea()