diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-09-01 19:07:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-09-02 08:56:56 +0200 |
commit | aff6205058e896ffa129f9efa470b49adee0a09d (patch) | |
tree | bb5c8949abc395a67950c02ebca0eb2407dd817b /sfx2/source/doc/objxtor.cxx | |
parent | 9c636d76a9a7e167da39913ab60f5135f8e831a6 (diff) |
replace set(nullptr) with clear()
It's a little easier to read, but mostly it makes an upcoming
loplugin easier to implement
Change-Id: I4ae7db8eda77795dab3255d1afd8ba4f20a8de76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156451
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc/objxtor.cxx')
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index e46dda12580b..917935d907d1 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -288,7 +288,7 @@ SfxObjectShell::~SfxObjectShell() EnableSetModified( false ); SfxObjectShell::CloseInternal(); - pImpl->pBaseModel.set( nullptr ); + pImpl->pBaseModel.clear(); pImpl->pReloadTimer.reset(); @@ -302,7 +302,7 @@ SfxObjectShell::~SfxObjectShell() if ( pSfxApp && pSfxApp->GetDdeService() ) pSfxApp->RemoveDdeTopic( this ); - pImpl->pBaseModel.set( nullptr ); + pImpl->pBaseModel.clear(); // don't call GetStorage() here, in case of Load Failure it's possible that a storage was never assigned! if ( pMedium && pMedium->HasStorage_Impl() && pMedium->GetStorage( false ) == pImpl->m_xDocStorage ) |