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/xml | |
parent | a3f97e65570855858e73e89c050f9c6589d3c7be (diff) |
Initialize constructor based implementations in one place.
Change-Id: I324f25bb5ec7d792c3e015815f2a11b08f519764
Diffstat (limited to 'svx/source/xml')
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index 913ca6cf1d21..4c705977e68e 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -1055,19 +1055,11 @@ com_sun_star_comp_Svx_GraphicImportHelper_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 SvXMLGraphicImportExportHelper( GRAPHICHELPER_MODE_READ))); 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(); } @@ -1088,19 +1080,11 @@ com_sun_star_comp_Svx_GraphicExportHelper_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 SvXMLGraphicImportExportHelper( GRAPHICHELPER_MODE_WRITE ))); 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(); } |