summaryrefslogtreecommitdiff
path: root/svl/source/config
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-03 20:07:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-03 23:20:20 +0200
commiteaf1f095ef96ceaf94f2fb1859324c11a35422c6 (patch)
tree4faf8bcf296c94ee0861ad6a1bdc68149399ad57 /svl/source/config
parenta3f4f372aa4f6a693ae8abe829a539b9d3977de1 (diff)
Just use Any ctor instead of makeAny in svl
Change-Id: Iefa570476bf0c881e36679ae9511ff63162e05d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133771 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl/source/config')
-rw-r--r--svl/source/config/asiancfg.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svl/source/config/asiancfg.cxx b/svl/source/config/asiancfg.cxx
index 3ff5797fccaf..a8f4e08e519d 100644
--- a/svl/source/config/asiancfg.cxx
+++ b/svl/source/config/asiancfg.cxx
@@ -149,17 +149,17 @@ void SvxAsianConfig::SetStartEndChars(
css::uno::Reference< css::beans::XPropertySet > el(
v.get< css::uno::Reference< css::beans::XPropertySet > >(),
css::uno::UNO_SET_THROW);
- el->setPropertyValue("StartCharacters", css::uno::makeAny(*startChars));
- el->setPropertyValue("EndCharacters", css::uno::makeAny(*endChars));
+ el->setPropertyValue("StartCharacters", css::uno::Any(*startChars));
+ el->setPropertyValue("EndCharacters", css::uno::Any(*endChars));
} else {
css::uno::Reference< css::beans::XPropertySet > el(
(css::uno::Reference< css::lang::XSingleServiceFactory >(
set, css::uno::UNO_QUERY_THROW)->
createInstance()),
css::uno::UNO_QUERY_THROW);
- el->setPropertyValue("StartCharacters", css::uno::makeAny(*startChars));
- el->setPropertyValue("EndCharacters", css::uno::makeAny(*endChars));
- css::uno::Any v2(css::uno::makeAny(el));
+ el->setPropertyValue("StartCharacters", css::uno::Any(*startChars));
+ el->setPropertyValue("EndCharacters", css::uno::Any(*endChars));
+ css::uno::Any v2(el);
try {
set->insertByName(name, v2);
} catch (css::container::ElementExistException &) {