diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-08 12:36:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-10 12:02:44 +0200 |
commit | 366d08f2f6d4de922f6099c62bb81b49d89e0a68 (patch) | |
tree | b232884af6e844c2f0994859e4b42efbc1ce654c /editeng/source/uno | |
parent | CppUnittest: ooxmlexport11: assert pages where possible (diff) | |
download | core-366d08f2f6d4de922f6099c62bb81b49d89e0a68.tar.gz core-366d08f2f6d4de922f6099c62bb81b49d89e0a68.zip |
new loplugin:simplifypointertobool
Change-Id: Iff68e8f379614a6ab6a6e0d1bad18e70bc76d76a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91907
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/uno')
-rw-r--r-- | editeng/source/uno/unoedprx.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/uno/unoedprx.cxx b/editeng/source/uno/unoedprx.cxx index e0109fe6631f..628570fdca74 100644 --- a/editeng/source/uno/unoedprx.cxx +++ b/editeng/source/uno/unoedprx.cxx @@ -302,7 +302,7 @@ SvxEditSourceAdapter::~SvxEditSourceAdapter() std::unique_ptr<SvxEditSource> SvxEditSourceAdapter::Clone() const { - if( mbEditSourceValid && mpAdaptee.get() ) + if( mbEditSourceValid && mpAdaptee ) { std::unique_ptr< SvxEditSource > pClonedAdaptee( mpAdaptee->Clone() ); @@ -319,7 +319,7 @@ std::unique_ptr<SvxEditSource> SvxEditSourceAdapter::Clone() const SvxAccessibleTextAdapter* SvxEditSourceAdapter::GetTextForwarderAdapter() { - if( mbEditSourceValid && mpAdaptee.get() ) + if( mbEditSourceValid && mpAdaptee ) { SvxTextForwarder* pTextForwarder = mpAdaptee->GetTextForwarder(); @@ -341,7 +341,7 @@ SvxTextForwarder* SvxEditSourceAdapter::GetTextForwarder() SvxViewForwarder* SvxEditSourceAdapter::GetViewForwarder() { - if( mbEditSourceValid && mpAdaptee.get() ) + if( mbEditSourceValid && mpAdaptee ) return mpAdaptee->GetViewForwarder(); return nullptr; @@ -349,7 +349,7 @@ SvxViewForwarder* SvxEditSourceAdapter::GetViewForwarder() SvxAccessibleTextEditViewAdapter* SvxEditSourceAdapter::GetEditViewForwarderAdapter( bool bCreate ) { - if( mbEditSourceValid && mpAdaptee.get() ) + if( mbEditSourceValid && mpAdaptee ) { SvxEditViewForwarder* pEditViewForwarder = mpAdaptee->GetEditViewForwarder(bCreate); @@ -376,13 +376,13 @@ SvxEditViewForwarder* SvxEditSourceAdapter::GetEditViewForwarder( bool bCreate ) void SvxEditSourceAdapter::UpdateData() { - if( mbEditSourceValid && mpAdaptee.get() ) + if( mbEditSourceValid && mpAdaptee ) mpAdaptee->UpdateData(); } SfxBroadcaster& SvxEditSourceAdapter::GetBroadcaster() const { - if( mbEditSourceValid && mpAdaptee.get() ) + if( mbEditSourceValid && mpAdaptee ) return mpAdaptee->GetBroadcaster(); return maDummyBroadcaster; |