diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-23 20:13:04 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-06-05 06:00:06 +0200 |
commit | 07af51d62d84bb843679e086f5f29833cd1359a1 (patch) | |
tree | f778fc684c862d83665f711a28617e46dca8bd8c /canvas/source/vcl/spritecanvas.cxx | |
parent | f97a7b965be154824e108802b386e3132b0a237a (diff) |
Use getXWeak in canvas
Change-Id: I51b4c20eadc594057d5384bff51b4547da86129d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150837
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'canvas/source/vcl/spritecanvas.cxx')
-rw-r--r-- | canvas/source/vcl/spritecanvas.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx index f67783681417..cbe0fa8dc791 100644 --- a/canvas/source/vcl/spritecanvas.cxx +++ b/canvas/source/vcl/spritecanvas.cxx @@ -179,9 +179,8 @@ com_sun_star_comp_rendering_SpriteCanvas_VCL_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& args) { rtl::Reference<vclcanvas::SpriteCanvas> p = new vclcanvas::SpriteCanvas(args, context); - cppu::acquire(p.get()); p->initialize(); - return static_cast<cppu::OWeakObject*>(p.get()); + return cppu::acquire(p.get()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |