From 94268513eeded3952972d7efe0a9bc689605421b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 Nov 2015 12:42:10 +0200 Subject: use uno::Reference::set method instead of assignment Change-Id: Id57ccff7ea6cf5c7053b51268b1190f5459bb357 --- unodevtools/source/skeletonmaker/cppcompskeleton.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'unodevtools') diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx index f9137b0a4a6d..488440e1b9a1 100644 --- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx +++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx @@ -538,8 +538,7 @@ void generateAddinConstructorAndHelper(std::ostream& o, " css::uno::Reference< css::uno::XInterface > xIface =\n" " xProvider->createInstanceWithArguments(sReadOnlyView, " "aArguments);\n\n" - " m_xHAccess = css::uno::Reference<\n " - "css::container::XHierarchicalNameAccess >(xIface, css::uno::UNO_QUERY);" + " m_xHAccess.set(xIface, css::uno::UNO_QUERY);" "\n\n"; o << " // extend arguments to create a view for all locales to get " @@ -551,8 +550,7 @@ void generateAddinConstructorAndHelper(std::ostream& o, " // create view for all locales\n" " xIface = xProvider->createInstanceWithArguments(sReadOnlyView, " "aArguments);\n\n" - " m_xCompAccess = css::uno::Reference<\n " - "css::container::XHierarchicalNameAccess >(xIface, css::uno::UNO_QUERY);\n"; + " m_xCompAccess.set(xIface, css::uno::UNO_QUERY);\n"; o << " }\n catch ( css::uno::Exception & ) {\n }\n}\n\n"; -- cgit