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/cairo/cairo_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/cairo/cairo_spritecanvas.cxx')
-rw-r--r-- | canvas/source/cairo/cairo_spritecanvas.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_spritecanvas.cxx b/canvas/source/cairo/cairo_spritecanvas.cxx index 74b2ce5892b6..5af40370c57f 100644 --- a/canvas/source/cairo/cairo_spritecanvas.cxx +++ b/canvas/source/cairo/cairo_spritecanvas.cxx @@ -225,9 +225,8 @@ com_sun_star_comp_rendering_SpriteCanvas_Cairo_get_implementation( css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& args) { rtl::Reference<cairocanvas::SpriteCanvas> p = new cairocanvas::SpriteCanvas(args, context); - p->acquire(); p->initialize(); - return static_cast<cppu::OWeakObject*>(p.get()); + return cppu::acquire(p.get()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |