summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-09 21:30:30 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-10 11:57:35 +0100
commit15ff0c3828406aa00d8fa0d1e7de90916f9c13cc (patch)
tree466f2321a34d00c9392a4a73e7c7c284cd4e8805 /xmloff
parent9c2c815d853a626d4329a7e8a2e99671bdb38f44 (diff)
cid#1545975 COPY_INSTEAD_OF_MOVE
and cid#1545955 COPY_INSTEAD_OF_MOVE cid#1545954 COPY_INSTEAD_OF_MOVE cid#1545952 COPY_INSTEAD_OF_MOVE cid#1545948 COPY_INSTEAD_OF_MOVE cid#1545943 COPY_INSTEAD_OF_MOVE cid#1545935 COPY_INSTEAD_OF_MOVE cid#1545930 COPY_INSTEAD_OF_MOVE cid#1545928 COPY_INSTEAD_OF_MOVE cid#1545925 COPY_INSTEAD_OF_MOVE cid#1545922 COPY_INSTEAD_OF_MOVE Change-Id: I28d830504337f417829c675b1eb9c763b83b30c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160522 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/XMLImageMapContext.cxx8
-rw-r--r--xmloff/source/style/xmlnumi.cxx3
2 files changed, 3 insertions, 8 deletions
diff --git a/xmloff/source/draw/XMLImageMapContext.cxx b/xmloff/source/draw/XMLImageMapContext.cxx
index e3a16c08636c..069d5025dea0 100644
--- a/xmloff/source/draw/XMLImageMapContext.cxx
+++ b/xmloff/source/draw/XMLImageMapContext.cxx
@@ -120,12 +120,8 @@ XMLImageMapObjectContext::XMLImageMapObjectContext(
Reference<XInterface> xIfc = xFactory->createInstance(
OUString::createFromAscii(pServiceName));
DBG_ASSERT(xIfc.is(), "can't create image map object!");
- if( xIfc.is() )
- {
- Reference<XPropertySet> xPropertySet( xIfc, UNO_QUERY );
-
- xMapEntry = xPropertySet;
- }
+ if (xIfc.is())
+ xMapEntry.set(xIfc, UNO_QUERY);
// else: can't create service -> ignore
// else: can't even get factory -> ignore
}
diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx
index 0ddab1466df8..c6233e09d280 100644
--- a/xmloff/source/style/xmlnumi.cxx
+++ b/xmloff/source/style/xmlnumi.cxx
@@ -969,8 +969,7 @@ void SvxXMLListStyleContext::CreateAndInsertLate( bool bOverwrite )
Reference < XInterface > xIfc = xFactory->createInstance("com.sun.star.style.NumberingStyle");
if( !xIfc.is() )
return;
- Reference < XStyle > xTmp( xIfc, UNO_QUERY );
- xStyle = xTmp;
+ xStyle.set(xIfc, UNO_QUERY);
if( !xStyle.is() )
return;