From bb06f51308428500c9c8d11ae05f0aa03ecc179c Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 18 Nov 2020 10:10:40 +0200 Subject: loplugin:stringviewparam extend to comparison operators which means that some call sites have to change to use unicode string literals i.e. u"foo" instead of "foo" Change-Id: Ie51c3adf56d343dd1d1710777f9d2a43ee66221c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106125 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/draw/XMLGraphicsDefaultStyle.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff/source/draw/XMLGraphicsDefaultStyle.cxx') diff --git a/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx b/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx index 8795e0a7a645..c6c07e27ebcc 100644 --- a/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx +++ b/xmloff/source/draw/XMLGraphicsDefaultStyle.cxx @@ -156,7 +156,7 @@ void XMLGraphicsDefaultStyle::SetDefaults() GetStyles()->GetImportPropertyMapper(GetFamily()) ->getPropertySetMapper()); sal_Int32 const nStrokeIndex( - pImpPrMap->GetEntryIndex(XML_NAMESPACE_SVG, "stroke-color", 0)); + pImpPrMap->GetEntryIndex(XML_NAMESPACE_SVG, u"stroke-color", 0)); if (std::none_of(GetProperties().begin(), GetProperties().end(), XMLPropertyByIndex(nStrokeIndex))) { @@ -167,7 +167,7 @@ void XMLGraphicsDefaultStyle::SetDefaults() Color const nFillColor( bIsAOO4 ? Color(0xCF, 0xE7, 0xF5) : Color(153, 204, 255)); sal_Int32 const nFillIndex( - pImpPrMap->GetEntryIndex(XML_NAMESPACE_DRAW, "fill-color", 0)); + pImpPrMap->GetEntryIndex(XML_NAMESPACE_DRAW, u"fill-color", 0)); if (std::none_of(GetProperties().begin(), GetProperties().end(), XMLPropertyByIndex(nFillIndex))) { @@ -176,7 +176,7 @@ void XMLGraphicsDefaultStyle::SetDefaults() if (xInfo->hasPropertyByName("FillColor2")) { sal_Int32 const nFill2Index(pImpPrMap->GetEntryIndex( - XML_NAMESPACE_DRAW, "secondary-fill-color", 0)); + XML_NAMESPACE_DRAW, u"secondary-fill-color", 0)); if (std::none_of(GetProperties().begin(), GetProperties().end(), XMLPropertyByIndex(nFill2Index))) { -- cgit