summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-09-01 19:07:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-09-02 08:56:56 +0200
commitaff6205058e896ffa129f9efa470b49adee0a09d (patch)
treebb5c8949abc395a67950c02ebca0eb2407dd817b /extensions
parent9c636d76a9a7e167da39913ab60f5135f8e831a6 (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 'extensions')
-rw-r--r--extensions/source/propctrlr/composeduiupdate.cxx2
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/composeduiupdate.cxx b/extensions/source/propctrlr/composeduiupdate.cxx
index 0e32ef19a9db..247dd4ab3e71 100644
--- a/extensions/source/propctrlr/composeduiupdate.cxx
+++ b/extensions/source/propctrlr/composeduiupdate.cxx
@@ -766,7 +766,7 @@ namespace pcr
singleUI.second->dispose();
}
m_pCollectedUIs.reset();
- m_xDelegatorUI.set( nullptr );
+ m_xDelegatorUI.clear();
}
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 1ca87af6e2fb..4265a8bc2dee 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -3151,7 +3151,7 @@ namespace pcr
return true;
}
m_xCommandDesigner->dispose();
- m_xCommandDesigner.set( nullptr );
+ m_xCommandDesigner.clear();
}
if ( !impl_ensureRowsetConnection_nothrow() )