diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-18 10:51:50 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-18 17:02:40 +0100 |
commit | 73eca35b0a8e01a7be2ce1775d1937154b5efb9e (patch) | |
tree | f0a3cf3ccdf3283b06ac068d464acde29a31257d /sfx2 | |
parent | 42fc427d047a263185d89528953f980019ef815f (diff) |
Unify ctor functions for component implementations.
There is no need to use different styles for writing the same thing.
It also makes it easier in future to use search & replace.
But of course, there are also some more complicated functions.
Change-Id: I773da20378af0e0d5a27689d3903df7063fb8ac0
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appbaslib.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/notify/globalevents.cxx | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/sfx2/source/appl/appbaslib.cxx b/sfx2/source/appl/appbaslib.cxx index a980606c587a..4b96cc2e6c0e 100644 --- a/sfx2/source/appl/appbaslib.cxx +++ b/sfx2/source/appl/appbaslib.cxx @@ -161,8 +161,7 @@ com_sun_star_comp_sfx2_ApplicationDialogLibraryContainer_get_implementation( css::uno::Sequence<css::uno::Any> const &) { SFX_APP()->GetBasicManager(); - Reference< XInterface > xRet = - Reference< XInterface >( SFX_APP()->GetDialogContainer(), UNO_QUERY ); + Reference< XInterface > xRet( SFX_APP()->GetDialogContainer(), UNO_QUERY ); xRet->acquire(); return xRet.get(); } @@ -176,8 +175,7 @@ com_sun_star_comp_sfx2_ApplicationScriptLibraryContainer_get_implementation( css::uno::Sequence<css::uno::Any> const &) { SFX_APP()->GetBasicManager(); - Reference< XInterface > xRet = - Reference< XInterface >( SFX_APP()->GetBasicContainer(), UNO_QUERY ); + Reference< XInterface > xRet( SFX_APP()->GetBasicContainer(), UNO_QUERY ); xRet->acquire(); return xRet.get(); } diff --git a/sfx2/source/notify/globalevents.cxx b/sfx2/source/notify/globalevents.cxx index 173e0b104ce5..5c8605282b52 100644 --- a/sfx2/source/notify/globalevents.cxx +++ b/sfx2/source/notify/globalevents.cxx @@ -534,7 +534,7 @@ struct Instance { static_cast<cppu::OWeakObject *>(new SfxGlobalEvents_Impl(context))) {} - css::uno::Reference<css::uno::XInterface> instance; + rtl::Reference<css::uno::XInterface> instance; }; struct Singleton: @@ -549,8 +549,7 @@ com_sun_star_comp_sfx2_GlobalEventBroadcaster_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence<css::uno::Any> const &) { - css::uno::Reference<css::uno::XInterface> x( - Singleton::get(context).instance); + rtl::Reference<css::uno::XInterface> x(Singleton::get(context).instance); x->acquire(); return x.get(); } |