summaryrefslogtreecommitdiff
path: root/xmloff
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 /xmloff
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 'xmloff')
-rw-r--r--xmloff/source/core/xmlimp.cxx4
-rw-r--r--xmloff/source/text/txtimp.cxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 1efe8b78416e..24264a77460b 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -1794,8 +1794,8 @@ void SvXMLImport::DisposingModel()
if( mxMasterStyles.is() )
mxMasterStyles->dispose();
- mxModel.set(nullptr);
- mxEventListener.set(nullptr);
+ mxModel.clear();
+ mxEventListener.clear();
}
::comphelper::UnoInterfaceToUniqueIdentifierMapper& SvXMLImport::getInterfaceToIdentifierMapper()
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index 0a4a18ad10d3..fa43e44e2b22 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -621,9 +621,9 @@ void XMLTextImportHelper::SetCursor( const Reference < XTextCursor > & rCursor )
void XMLTextImportHelper::ResetCursor()
{
- m_xImpl->m_xCursor.set(nullptr);
- m_xImpl->m_xText.set(nullptr);
- m_xImpl->m_xCursorAsRange.set(nullptr);
+ m_xImpl->m_xCursor.clear();
+ m_xImpl->m_xText.clear();
+ m_xImpl->m_xCursorAsRange.clear();
}