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 /stoc/source/implementationregistration | |
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 'stoc/source/implementationregistration')
-rw-r--r-- | stoc/source/implementationregistration/implreg.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index 7b7a13cca5ef..e5daf98392f8 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -30,9 +30,9 @@ #include <uno/mapping.hxx> #include <osl/thread.h> +#include <rtl/ref.hxx> #include <rtl/ustring.hxx> #include <rtl/ustrbuf.hxx> -#include <rtl/strbuf.hxx> #include <osl/process.h> #include <com/sun/star/lang/XServiceInfo.hpp> @@ -1821,11 +1821,9 @@ com_sun_star_comp_stoc_ImplementationRegistration_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence<css::uno::Any> const &) { - css::uno::Reference<css::uno::XInterface> x( - static_cast<cppu::OWeakObject *>( - new ImplementationRegistration(context))); + rtl::Reference<ImplementationRegistration> x(new ImplementationRegistration(context)); x->acquire(); - return x.get(); + return static_cast<cppu::OWeakObject *>(x.get()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |