From d573e2ae17d2ff589ec7adc0dddf6a78db4cc93a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 May 2024 09:34:37 +0200 Subject: loplugin:ostr in various Change-Id: I9f399b3752da9df930e0647536ffcd4e82beb1ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167856 Tested-by: Jenkins Reviewed-by: Noel Grandin --- docmodel/source/theme/Theme.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docmodel') diff --git a/docmodel/source/theme/Theme.cxx b/docmodel/source/theme/Theme.cxx index d4095eeb3ebd..364b25fc7187 100644 --- a/docmodel/source/theme/Theme.cxx +++ b/docmodel/source/theme/Theme.cxx @@ -60,7 +60,7 @@ void Theme::dumpAsXml(xmlTextWriterPtr pWriter) const void Theme::ToAny(uno::Any& rVal) const { comphelper::SequenceAsHashMap aMap; - aMap["Name"] <<= maName; + aMap[u"Name"_ustr] <<= maName; if (mpColorSet) { @@ -74,8 +74,8 @@ void Theme::ToAny(uno::Any& rVal) const } } - aMap["ColorSchemeName"] <<= mpColorSet->getName(); - aMap["ColorScheme"] <<= comphelper::containerToSequence(aColorScheme); + aMap[u"ColorSchemeName"_ustr] <<= mpColorSet->getName(); + aMap[u"ColorScheme"_ustr] <<= comphelper::containerToSequence(aColorScheme); } rVal <<= aMap.getAsConstPropertyValueList(); @@ -87,7 +87,7 @@ std::unique_ptr Theme::FromAny(const uno::Any& rVal) std::unique_ptr pTheme; std::shared_ptr pColorSet; - auto it = aMap.find("Name"); + auto it = aMap.find(u"Name"_ustr); if (it != aMap.end()) { OUString aName; @@ -95,7 +95,7 @@ std::unique_ptr Theme::FromAny(const uno::Any& rVal) pTheme = std::make_unique(aName); } - it = aMap.find("ColorSchemeName"); + it = aMap.find(u"ColorSchemeName"_ustr); if (it != aMap.end() && pTheme) { OUString aName; @@ -104,7 +104,7 @@ std::unique_ptr Theme::FromAny(const uno::Any& rVal) pTheme->setColorSet(pColorSet); } - it = aMap.find("ColorScheme"); + it = aMap.find(u"ColorScheme"_ustr); if (it != aMap.end() && pColorSet) { uno::Sequence aColors; -- cgit