diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 13:26:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 13:32:17 +0200 |
commit | 9e8ff13eb2405f7e3dcb4f90cb38e9e4b1da2bd5 (patch) | |
tree | ea4cd1922080d73b82a5b4bd4796d6190430f3fa /xmloff/source/forms/elementimport.cxx | |
parent | 281296330735158d6265e0b146b5d5301f6e610e (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I60e52ef2abc3107ba77e81811dfe1bffbfd77218
Diffstat (limited to 'xmloff/source/forms/elementimport.cxx')
-rw-r--r-- | xmloff/source/forms/elementimport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx index fec7bd238e51..cd10c3215559 100644 --- a/xmloff/source/forms/elementimport.cxx +++ b/xmloff/source/forms/elementimport.cxx @@ -619,7 +619,7 @@ namespace xmloff Reference< XInterface > xPure = xContext->getServiceManager()->createInstanceWithContext(m_sServiceName, xContext); OSL_ENSURE(xPure.is(), OStringBuffer("OElementImport::createElement: service factory gave me no object (service name: ").append(OUStringToOString(m_sServiceName, RTL_TEXTENCODING_ASCII_US)).append(")!").getStr()); - xReturn = Reference< XPropertySet >(xPure, UNO_QUERY); + xReturn.set(xPure, UNO_QUERY); } else OSL_FAIL("OElementImport::createElement: no service name to create an element!"); @@ -1853,7 +1853,7 @@ namespace xmloff Reference< XCloneable > xCloneList(_rxAttrList, UNO_QUERY); OSL_ENSURE(xCloneList.is(), "OColumnWrapperImport::StartElement: AttributeList not cloneable!"); if ( xCloneList.is() ) - m_xOwnAttributes = Reference< XAttributeList >(xCloneList->createClone(), UNO_QUERY); + m_xOwnAttributes.set(xCloneList->createClone(), UNO_QUERY); OSL_ENSURE(m_xOwnAttributes.is(), "OColumnWrapperImport::StartElement: no cloned list!"); } |