summaryrefslogtreecommitdiff
path: root/cppuhelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-24 10:24:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-24 09:17:34 +0000
commit48e83f7be240cd0af5b9f1ee5b87c4d9376c102e (patch)
tree15ccd05d11aca0461309670987ae71316a6232ca /cppuhelper/source
parent3422dfc1b61c15d7d3a6b0e1ee16c50457946cc0 (diff)
makeAny->Any in cppuhelper..cui
Change-Id: Ia54e6e9b71df68bd04c304a0bb02da8ebac74420 Reviewed-on: https://gerrit.libreoffice.org/34603 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppuhelper/source')
-rw-r--r--cppuhelper/source/component_context.cxx4
-rw-r--r--cppuhelper/source/defaultbootstrap.cxx10
-rw-r--r--cppuhelper/source/factory.cxx2
-rw-r--r--cppuhelper/source/propertysetmixin.cxx6
-rw-r--r--cppuhelper/source/servicemanager.cxx8
5 files changed, 15 insertions, 15 deletions
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx
index 3311770281e6..08e2e7ad4737 100644
--- a/cppuhelper/source/component_context.cxx
+++ b/cppuhelper/source/component_context.cxx
@@ -378,7 +378,7 @@ Any ComponentContext::getValueByName( OUString const & rName )
if (m_xDelegate.is())
return m_xDelegate->getValueByName( rName );
else
- return makeAny( Reference<XComponentContext>(this) );
+ return Any( Reference<XComponentContext>(this) );
}
Any ret( lookupMap( rName ) );
@@ -538,7 +538,7 @@ ComponentContext::ComponentContext(
if (xProps.is())
{
Reference< XComponentContext > xThis( this );
- xProps->setPropertyValue( "DefaultContext", makeAny( xThis ) );
+ xProps->setPropertyValue( "DefaultContext", Any( xThis ) );
}
}
catch (...)
diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx
index f7c909f939c3..9f67fc8d3dd1 100644
--- a/cppuhelper/source/defaultbootstrap.cxx
+++ b/cppuhelper/source/defaultbootstrap.cxx
@@ -62,32 +62,32 @@ cppu::defaultBootstrap_InitialComponentContext(rtl::OUString const & iniUri)
context_values.push_back(
cppu::ContextEntry_Init(
"/singletons/com.sun.star.lang.theServiceManager",
- css::uno::makeAny(
+ css::uno::Any(
css::uno::Reference< css::uno::XInterface >(
static_cast< cppu::OWeakObject * >(smgr.get()))),
false));
context_values.push_back(
cppu::ContextEntry_Init(
"/singletons/com.sun.star.reflection.theTypeDescriptionManager",
- css::uno::makeAny(
+ css::uno::Any(
css::uno::Reference< css::uno::XInterface >(
static_cast< cppu::OWeakObject * >(tmgr.get()))),
false));
context_values.push_back( //TODO: from services.rdb?
cppu::ContextEntry_Init(
"/singletons/com.sun.star.util.theMacroExpander",
- css::uno::makeAny(
+ css::uno::Any(
cppuhelper::detail::create_bootstrap_macro_expander_factory()),
true));
smgr->addSingletonContextEntries(&context_values);
context_values.push_back(
cppu::ContextEntry_Init(
"/services/com.sun.star.security.AccessController/mode",
- css::uno::makeAny(rtl::OUString("off")), false));
+ css::uno::Any(rtl::OUString("off")), false));
context_values.push_back(
cppu::ContextEntry_Init(
"/singletons/com.sun.star.security.theAccessController",
- css::uno::makeAny(
+ css::uno::Any(
rtl::OUString("com.sun.star.security.AccessController")),
true));
assert(!context_values.empty());
diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx
index 4c55ad7aaf91..55b4f55b90d3 100644
--- a/cppuhelper/source/factory.cxx
+++ b/cppuhelper/source/factory.cxx
@@ -297,7 +297,7 @@ Any SAL_CALL OFactoryComponentHelper::queryInterface( const Type & rType )
{
if( rType == cppu::UnoType<XUnloadingPreference>::get() )
{
- return makeAny(
+ return Any(
Reference< XUnloadingPreference >(
static_cast< XUnloadingPreference * >(this) ) );
}
diff --git a/cppuhelper/source/propertysetmixin.cxx b/cppuhelper/source/propertysetmixin.cxx
index c6de17a7d23b..00769d590454 100644
--- a/cppuhelper/source/propertysetmixin.cxx
+++ b/cppuhelper/source/propertysetmixin.cxx
@@ -737,7 +737,7 @@ css::uno::Any PropertySetMixinImpl::Impl::wrapValue(
wrapDefaulted, isDefaulted, wrapOptional));
css::uno::Reference< css::reflection::XIdlField2 >(
type->getField("IsAmbiguous"), css::uno::UNO_QUERY_THROW)->set(
- strct, css::uno::makeAny(isAmbiguous));
+ strct, css::uno::Any(isAmbiguous));
} catch (css::lang::IllegalArgumentException & e) {
throw css::uno::RuntimeException(
("unexpected com.sun.star.lang.IllegalArgumentException: "
@@ -765,7 +765,7 @@ css::uno::Any PropertySetMixinImpl::Impl::wrapValue(
false, false, wrapOptional));
css::uno::Reference< css::reflection::XIdlField2 >(
type->getField("IsDefaulted"), css::uno::UNO_QUERY_THROW)->set(
- strct, css::uno::makeAny(isDefaulted));
+ strct, css::uno::Any(isDefaulted));
} catch (css::lang::IllegalArgumentException & e) {
throw css::uno::RuntimeException(
("unexpected com.sun.star.lang.IllegalArgumentException: "
@@ -787,7 +787,7 @@ css::uno::Any PropertySetMixinImpl::Impl::wrapValue(
try {
css::uno::Reference< css::reflection::XIdlField2 >(
type->getField("IsPresent"), css::uno::UNO_QUERY_THROW)->set(
- strct, css::uno::makeAny(present));
+ strct, css::uno::Any(present));
if (present) {
css::uno::Reference< css::reflection::XIdlField2 > field(
type->getField("Value"), css::uno::UNO_QUERY_THROW);
diff --git a/cppuhelper/source/servicemanager.cxx b/cppuhelper/source/servicemanager.cxx
index 1fd8bba105c1..e3ddaee00798 100644
--- a/cppuhelper/source/servicemanager.cxx
+++ b/cppuhelper/source/servicemanager.cxx
@@ -1183,13 +1183,13 @@ cppuhelper::ServiceManager::createContentEnumeration(
}
}
if (impl->factory1.is()) {
- factories.push_back(css::uno::makeAny(impl->factory1));
+ factories.push_back(css::uno::Any(impl->factory1));
} else if (impl->factory2.is()) {
- factories.push_back(css::uno::makeAny(impl->factory2));
+ factories.push_back(css::uno::Any(impl->factory2));
} else {
css::uno::Reference< css::lang::XSingleComponentFactory > factory(
new ImplementationWrapper(this, *i));
- factories.push_back(css::uno::makeAny(factory));
+ factories.push_back(css::uno::Any(factory));
}
}
return new ContentEnumeration(factories);
@@ -1221,7 +1221,7 @@ css::uno::Any cppuhelper::ServiceManager::getPropertyValue(
PropertyName, static_cast< cppu::OWeakObject * >(this));
}
assert(context_.is());
- return css::uno::makeAny(context_);
+ return css::uno::Any(context_);
}
void cppuhelper::ServiceManager::addPropertyChangeListener(