summaryrefslogtreecommitdiff
path: root/configmgr/source
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/source')
-rw-r--r--configmgr/source/access.cxx28
-rw-r--r--configmgr/source/childaccess.cxx5
-rw-r--r--configmgr/source/configurationregistry.cxx4
-rw-r--r--configmgr/source/rootaccess.cxx2
-rw-r--r--configmgr/source/valueparser.cxx6
5 files changed, 22 insertions, 23 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index 63ec79f04157..13a52885e6c2 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -1629,7 +1629,7 @@ void Access::initBroadcasterAndChanges(
css::container::ContainerEvent(
static_cast< cppu::OWeakObject * >(
this),
- css::uno::makeAny(i.first),
+ css::uno::Any(i.first),
css::uno::Any(), css::uno::Any()));
//TODO: non-void Element, ReplacedElement
}
@@ -1667,7 +1667,7 @@ void Access::initBroadcasterAndChanges(
if (allChanges != nullptr) {
allChanges->push_back(
css::util::ElementChange(
- css::uno::makeAny(
+ css::uno::Any(
child->getRelativePathRepresentation()),
css::uno::Any(), css::uno::Any()));
//TODO: non-void Element, ReplacedElement
@@ -1693,14 +1693,14 @@ void Access::initBroadcasterAndChanges(
*j,
css::container::ContainerEvent(
static_cast< cppu::OWeakObject * >(this),
- css::uno::makeAny(i.first), child->asValue(),
+ css::uno::Any(i.first), child->asValue(),
css::uno::Any()));
//TODO: distinguish add/modify; non-void ReplacedElement
}
if (allChanges != nullptr) {
allChanges->push_back(
css::util::ElementChange(
- css::uno::makeAny(
+ css::uno::Any(
child->getRelativePathRepresentation()),
child->asValue(), css::uno::Any()));
//TODO: non-void ReplacedElement
@@ -1717,7 +1717,7 @@ void Access::initBroadcasterAndChanges(
*j,
css::container::ContainerEvent(
static_cast< cppu::OWeakObject * >(this),
- css::uno::makeAny(i.first), child->asValue(),
+ css::uno::Any(i.first), child->asValue(),
css::uno::Any()));
//TODO: distinguish add/remove/modify; non-void
// ReplacedElement
@@ -1754,7 +1754,7 @@ void Access::initBroadcasterAndChanges(
if (allChanges != nullptr) {
allChanges->push_back(
css::util::ElementChange(
- css::uno::makeAny(
+ css::uno::Any(
child->getRelativePathRepresentation()),
child->asValue(), css::uno::Any()));
//TODO: non-void ReplacedElement
@@ -1782,13 +1782,13 @@ void Access::initBroadcasterAndChanges(
css::container::ContainerEvent(
static_cast< cppu::OWeakObject * >(
this),
- css::uno::makeAny(i.first),
+ css::uno::Any(i.first),
child->asValue(), css::uno::Any()));
}
if (allChanges != nullptr) {
allChanges->push_back(
css::util::ElementChange(
- css::uno::makeAny(
+ css::uno::Any(
child->getRelativePathRepresentation()),
css::uno::Any(), css::uno::Any()));
//TODO: non-void Element, ReplacedElement
@@ -1820,7 +1820,7 @@ void Access::initBroadcasterAndChanges(
*j,
css::container::ContainerEvent(
static_cast< cppu::OWeakObject * >(this),
- css::uno::makeAny(i.first), css::uno::Any(),
+ css::uno::Any(i.first), css::uno::Any(),
css::uno::Any()));
//TODO: non-void ReplacedElement
}
@@ -1832,7 +1832,7 @@ void Access::initBroadcasterAndChanges(
path.append(Data::createSegment("*", i.first));
allChanges->push_back(
css::util::ElementChange(
- css::uno::makeAny(path.makeStringAndClear()),
+ css::uno::Any(path.makeStringAndClear()),
css::uno::Any(), css::uno::Any()));
//TODO: non-void ReplacedElement
}
@@ -1849,7 +1849,7 @@ void Access::initBroadcasterAndChanges(
*j,
css::container::ContainerEvent(
static_cast< cppu::OWeakObject * >(this),
- css::uno::makeAny(i.first), css::uno::Any(),
+ css::uno::Any(i.first), css::uno::Any(),
css::uno::Any()));
//TODO: non-void ReplacedElement
}
@@ -1891,7 +1891,7 @@ void Access::initBroadcasterAndChanges(
path.append(i.first);
allChanges->push_back(
css::util::ElementChange(
- css::uno::makeAny(path.makeStringAndClear()),
+ css::uno::Any(path.makeStringAndClear()),
css::uno::Any(), css::uno::Any()));
//TODO: non-void ReplacedElement
}
@@ -1915,7 +1915,7 @@ void Access::initBroadcasterAndChanges(
*j,
css::container::ContainerEvent(
static_cast< cppu::OWeakObject * >(this),
- css::uno::makeAny(i.first),
+ css::uno::Any(i.first),
css::uno::Any(), css::uno::Any()));
//TODO: non-void ReplacedElement
}
@@ -1928,7 +1928,7 @@ void Access::initBroadcasterAndChanges(
path.append(Data::createSegment("*", i.first));
allChanges->push_back(
css::util::ElementChange(
- css::uno::makeAny(path.makeStringAndClear()),
+ css::uno::Any(path.makeStringAndClear()),
css::uno::Any(), css::uno::Any()));
//TODO: non-void ReplacedElement
}
diff --git a/configmgr/source/childaccess.cxx b/configmgr/source/childaccess.cxx
index c38e58a4cd43..c45901fac623 100644
--- a/configmgr/source/childaccess.cxx
+++ b/configmgr/source/childaccess.cxx
@@ -268,9 +268,8 @@ css::uno::Any ChildAccess::asValue()
return child.is() ? child->asValue() : css::uno::Any();
}
}
- value = css::uno::makeAny(
- css::uno::Reference< css::uno::XInterface >(
- static_cast< cppu::OWeakObject * >(this)));
+ value <<= css::uno::Reference< css::uno::XInterface >(
+ static_cast< cppu::OWeakObject * >(this));
}
return value;
}
diff --git a/configmgr/source/configurationregistry.cxx b/configmgr/source/configurationregistry.cxx
index 2f23577ba2ba..65a24c6903fa 100644
--- a/configmgr/source/configurationregistry.cxx
+++ b/configmgr/source/configurationregistry.cxx
@@ -251,7 +251,7 @@ void Service::open(OUString const & rURL, sal_Bool bReadOnly, sal_Bool)
doClose();
}
css::uno::Sequence< css::uno::Any > args(1);
- args[0] <<= css::beans::NamedValue("nodepath", css::uno::makeAny(rURL));
+ args[0] <<= css::beans::NamedValue("nodepath", css::uno::Any(rURL));
try {
access_ = provider_->createInstanceWithArguments(
(bReadOnly
@@ -294,7 +294,7 @@ css::uno::Reference< css::registry::XRegistryKey > Service::getRootKey()
{
osl::MutexGuard g(mutex_);
checkValid();
- return new RegistryKey(*this, css::uno::makeAny(access_));
+ return new RegistryKey(*this, css::uno::Any(access_));
}
sal_Bool Service::isReadOnly() {
diff --git a/configmgr/source/rootaccess.cxx b/configmgr/source/rootaccess.cxx
index ec47b20cb9b8..4601cef9e908 100644
--- a/configmgr/source/rootaccess.cxx
+++ b/configmgr/source/rootaccess.cxx
@@ -88,7 +88,7 @@ void RootAccess::initBroadcaster(
broadcaster->addChangesNotification(
*i,
css::util::ChangesEvent(
- pSource, makeAny( xBase ), set));
+ pSource, css::uno::Any( xBase ), set));
}
}
}
diff --git a/configmgr/source/valueparser.cxx b/configmgr/source/valueparser.cxx
index e732e8df58e1..33176071a640 100644
--- a/configmgr/source/valueparser.cxx
+++ b/configmgr/source/valueparser.cxx
@@ -172,7 +172,7 @@ template< typename T > css::uno::Any parseSingleValue(
if (!parseValue(text, &val)) {
throw css::uno::RuntimeException("invalid value");
}
- return css::uno::makeAny(val);
+ return css::uno::Any(val);
}
template< typename T > css::uno::Any parseListValue(
@@ -203,7 +203,7 @@ template< typename T > css::uno::Any parseListValue(
t.length -= i + sep.length;
}
}
- return css::uno::makeAny(comphelper::containerToSequence(seq));
+ return css::uno::Any(comphelper::containerToSequence(seq));
}
css::uno::Any parseValue(
@@ -445,7 +445,7 @@ template< typename T > css::uno::Any ValueParser::convertItems() {
assert(ok);
(void) ok; // avoid warnings
}
- return css::uno::makeAny(seq);
+ return css::uno::Any(seq);
}
}