diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 12:42:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 12:42:42 +0200 |
commit | 94268513eeded3952972d7efe0a9bc689605421b (patch) | |
tree | 5994adbdba4ca18b8c326e70db2a73a18527caa0 /unodevtools/source/skeletonmaker | |
parent | c89ba1dedc511ec17df1e35f8e0696bc20121491 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: Id57ccff7ea6cf5c7053b51268b1190f5459bb357
Diffstat (limited to 'unodevtools/source/skeletonmaker')
-rw-r--r-- | unodevtools/source/skeletonmaker/cppcompskeleton.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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"; |