summaryrefslogtreecommitdiff
path: root/docmodel
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-20 09:34:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-20 22:09:56 +0200
commitd573e2ae17d2ff589ec7adc0dddf6a78db4cc93a (patch)
treecefd09b6f39b3116f26193dc043bda1f49713ae9 /docmodel
parent41c04ceb3b1b14c3c99ede86524df8f3de4f5daa (diff)
loplugin:ostr in various
Change-Id: I9f399b3752da9df930e0647536ffcd4e82beb1ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167856 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'docmodel')
-rw-r--r--docmodel/source/theme/Theme.cxx12
1 files changed, 6 insertions, 6 deletions
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> Theme::FromAny(const uno::Any& rVal)
std::unique_ptr<Theme> pTheme;
std::shared_ptr<model::ColorSet> 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> Theme::FromAny(const uno::Any& rVal)
pTheme = std::make_unique<Theme>(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> 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<util::Color> aColors;