summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-04-23 20:15:27 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-05-27 12:44:52 +0200
commit35eb21d563418bdd664677d073c5653ace3da957 (patch)
tree8c960caa62004f73ebe0fcf3459081fd2216bddd /unodevtools
parent1f91efaea987c78c2755ea5d02eb3b1cb50743bd (diff)
Use getXWeak in unodevtools
Change-Id: I71c8c7f26dac1ce97f29818c73f3268d948d57a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150881 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/cppcompskeleton.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
index b17c35c90c84..a550a8e63c85 100644
--- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
+++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx
@@ -160,7 +160,7 @@ static void generateCompHelperDefinition(std::ostream & o,
o << "css::uno::Reference< css::uno::XInterface > SAL_CALL _create("
"\n const css::uno::Reference< css::uno::XComponentContext > & "
"context)\n{\n"
- " return static_cast< ::cppu::OWeakObject * >(new "
+ " return getXWeak(new "
<< classname << "(context));\n}\n\n";
// close namespace