diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-14 09:09:57 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-15 08:51:25 +0100 |
commit | bdeb57c23973f3ef79020847b2fe39f312cf3c0b (patch) | |
tree | 8e3b8d052b753c228bea7b438d9b18da39ac1b65 /svx/source/unogallery | |
parent | a3f97e65570855858e73e89c050f9c6589d3c7be (diff) |
Initialize constructor based implementations in one place.
Change-Id: I324f25bb5ec7d792c3e015815f2a11b08f519764
Diffstat (limited to 'svx/source/unogallery')
-rw-r--r-- | svx/source/unogallery/unogalthemeprovider.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/svx/source/unogallery/unogalthemeprovider.cxx b/svx/source/unogallery/unogalthemeprovider.cxx index 71b0736f6491..78c4628a6eab 100644 --- a/svx/source/unogallery/unogalthemeprovider.cxx +++ b/svx/source/unogallery/unogalthemeprovider.cxx @@ -253,18 +253,10 @@ com_sun_star_comp_gallery_GalleryThemeProvider_implementation_getFactory( SAL_UNUSED_PARAMETER css::uno::XComponentContext *, uno_Sequence * arguments) { - assert(arguments != 0); + assert(arguments != 0); (void) arguments; css::uno::Reference<css::uno::XInterface> x( static_cast<cppu::OWeakObject *>(new GalleryThemeProvider)); x->acquire(); - css::uno::Reference< css::lang::XInitialization > xx(x, css::uno::UNO_QUERY); - if (xx.is()) - { - css::uno::Sequence<css::uno::Any> aArgs( - reinterpret_cast<css::uno::Any *>(arguments->elements), - arguments->nElements); - xx->initialize(aArgs); - } return x.get(); } |