summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-01-14 15:41:32 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-01-15 08:51:27 +0100
commit4337a0664f4fb73f9e1be74f2a632847871da402 (patch)
treeb64c893fd88bb62d56ef2e7126923309b92d8afe /cppuhelper
parentbdeb57c23973f3ef79020847b2fe39f312cf3c0b (diff)
Use const& arguments parameter for ctor functions.
Change-Id: I19ce8bd1a23123ac9a62a7fc95cd54fea5315221
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/servicemanager.cxx8
-rw-r--r--cppuhelper/source/servicemanager.hxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/cppuhelper/source/servicemanager.cxx b/cppuhelper/source/servicemanager.cxx
index bebeaa82e641..d7ab48ac447a 100644
--- a/cppuhelper/source/servicemanager.cxx
+++ b/cppuhelper/source/servicemanager.cxx
@@ -588,7 +588,7 @@ ImplementationWrapper::createInstanceWithContext(
return constructor_ != 0
? css::uno::Reference<css::uno::XInterface>(
(*constructor_)(
- Context.get(), css::uno::Sequence<css::uno::Any>().get()),
+ Context.get(), css::uno::Sequence<css::uno::Any>()),
SAL_NO_ACQUIRE)
: factory1_.is()
? factory1_->createInstanceWithContext(Context)
@@ -604,7 +604,7 @@ ImplementationWrapper::createInstanceWithArgumentsAndContext(
loadImplementation(Context);
if (constructor_ != 0) {
css::uno::Reference<css::uno::XInterface> xRet(
- (*constructor_)(Context.get(), Arguments.get()), SAL_NO_ACQUIRE);
+ (*constructor_)(Context.get(), Arguments), SAL_NO_ACQUIRE);
css::uno::Reference<css::lang::XInitialization> xInit(
xRet, css::uno::UNO_QUERY);
if (xInit.is())
@@ -909,7 +909,7 @@ cppuhelper::ServiceManager::createInstanceWithContext(
if (impl->constructor != 0) {
return css::uno::Reference<css::uno::XInterface>(
(*impl->constructor)(
- Context.get(), css::uno::Sequence<css::uno::Any>().get()),
+ Context.get(), css::uno::Sequence<css::uno::Any>()),
SAL_NO_ACQUIRE);
} else if (impl->factory1.is()) {
return impl->factory1->createInstanceWithContext(Context);
@@ -936,7 +936,7 @@ cppuhelper::ServiceManager::createInstanceWithArgumentsAndContext(
}
if (impl->constructor != 0) {
css::uno::Reference<css::uno::XInterface> xRet(
- (*impl->constructor)(Context.get(), Arguments.get()),
+ (*impl->constructor)(Context.get(), Arguments),
SAL_NO_ACQUIRE);
css::uno::Reference<css::lang::XInitialization> xInit(
xRet, css::uno::UNO_QUERY);
diff --git a/cppuhelper/source/servicemanager.hxx b/cppuhelper/source/servicemanager.hxx
index d76b93f9a4f6..74f2f4acb51f 100644
--- a/cppuhelper/source/servicemanager.hxx
+++ b/cppuhelper/source/servicemanager.hxx
@@ -44,7 +44,7 @@ namespace cppuhelper {
extern "C" {
typedef css::uno::XInterface * SAL_CALL ImplementationConstructorFn(
- css::uno::XComponentContext *, uno_Sequence *);
+ css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &);
}