diff options
Diffstat (limited to 'svx/source/unodraw/unoshtxt.cxx')
-rw-r--r-- | svx/source/unodraw/unoshtxt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx index d4172b1efdc4..0cc0b43c5f9e 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 ); @@ -237,7 +237,7 @@ SvxTextEditSourceImpl::SvxTextEditSourceImpl( SdrObject& rObject, SdrText* pText SvxTextEditSourceImpl::~SvxTextEditSourceImpl() { - DBG_ASSERT( mbIsLocked == false, "text edit source was not unlocked before dispose!" ); + DBG_ASSERT( !mbIsLocked, "text edit source was not unlocked before dispose!" ); if( mpObject ) mpObject->RemoveObjectUser( *this ); @@ -921,7 +921,7 @@ void SvxTextEditSourceImpl::unlock() bool SvxTextEditSourceImpl::IsValid() const { - return mpView && mpWindow ? sal_True : sal_False; + return mpView && mpWindow; } Rectangle SvxTextEditSourceImpl::GetVisArea() |