diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-12 13:30:06 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-13 11:26:31 +0100 |
commit | 924a415e68cfeb8eda54db3e19f71eafcd2b9b1e (patch) | |
tree | af16bde540037c7dbbade1f52ebc3f2f32f05e9f /sfx2/source/notify | |
parent | eb1799714c7f57cbb8006d33736cd5e088ed6558 (diff) |
cosmetics
Change-Id: Ice4f20db3a590568a7ae4ae59fa0c4ff13e59051
Diffstat (limited to 'sfx2/source/notify')
-rw-r--r-- | sfx2/source/notify/globalevents.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/notify/globalevents.cxx b/sfx2/source/notify/globalevents.cxx index d5931e920db7..367e8adf700a 100644 --- a/sfx2/source/notify/globalevents.cxx +++ b/sfx2/source/notify/globalevents.cxx @@ -549,9 +549,8 @@ com_sun_star_comp_sfx2_GlobalEventBroadcaster_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence<css::uno::Any> const &) { - css::uno::XInterface *inst = Singleton::get(context).instance.get(); - inst->acquire(); - return inst; + return cppu::acquire(static_cast<cppu::OWeakObject *>( + Singleton::get(context).instance.get())); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |