summaryrefslogtreecommitdiff
path: root/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unodevtools/source/skeletonmaker/cppcompskeleton.cxx')
-rw-r--r--unodevtools/source/skeletonmaker/cppcompskeleton.cxx6
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";