diff options
author | Arnaud VERSINI <arnaud.versini@libreoffice.org> | 2024-03-24 17:18:36 +0100 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@pm.me> | 2024-03-25 17:30:27 +0100 |
commit | f16d04c95f6952c811b67c3891c27bd01a4824df (patch) | |
tree | 60a8bca5c4e91282c240d747505c0044ab25cd46 | |
parent | 0d859cee05aca630d013cfa8a4a6332775c95262 (diff) |
xmloff : no need to use OUString literal for comparison
Change-Id: I2b8f75ec56d93003d8c9c14b3cad1e3978cc6a39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165227
Tested-by: Jenkins
Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
-rw-r--r-- | xmloff/source/script/XMLEventExport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/script/XMLScriptExportHandler.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/prstylei.cxx | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx index 839944a2676d..3d37095f0b5e 100644 --- a/xmloff/source/script/XMLEventExport.cxx +++ b/xmloff/source/script/XMLEventExport.cxx @@ -185,7 +185,7 @@ void XMLEventExport::ExportEvent( { // search for EventType value and then delegate to EventHandler const PropertyValue* pValue = std::find_if(rEventValues.begin(), rEventValues.end(), - [](const PropertyValue& rValue) { return u"EventType"_ustr == rValue.Name; }); + [](const PropertyValue& rValue) { return u"EventType" == rValue.Name; }); if (pValue == rEventValues.end()) return; diff --git a/xmloff/source/script/XMLScriptExportHandler.cxx b/xmloff/source/script/XMLScriptExportHandler.cxx index 6b5075d02112..b60a3f27be75 100644 --- a/xmloff/source/script/XMLScriptExportHandler.cxx +++ b/xmloff/source/script/XMLScriptExportHandler.cxx @@ -53,7 +53,7 @@ void XMLScriptExportHandler::Export( for(const auto& rValue : rValues) { - if (u"Script"_ustr == rValue.Name) + if (u"Script" == rValue.Name) { OUString sTmp; rValue.Value >>= sTmp; diff --git a/xmloff/source/style/prstylei.cxx b/xmloff/source/style/prstylei.cxx index 95a869653fd9..a10fbbaed299 100644 --- a/xmloff/source/style/prstylei.cxx +++ b/xmloff/source/style/prstylei.cxx @@ -627,16 +627,16 @@ void XMLPropStyleContext::translateNameBasedDrawingLayerFillStyleDefinitionsToSt const OUString& rPropName = rMapper->GetEntryAPIName(a.mnIndex); XmlStyleFamily aStyleFamily(XmlStyleFamily::DATA_STYLE); - if(rPropName == u"FillGradientName"_ustr - || rPropName == u"FillTransparenceGradientName"_ustr) + if(rPropName == u"FillGradientName" + || rPropName == u"FillTransparenceGradientName") { aStyleFamily = XmlStyleFamily::SD_GRADIENT_ID; } - else if(rPropName == u"FillHatchName"_ustr) + else if(rPropName == u"FillHatchName") { aStyleFamily = XmlStyleFamily::SD_HATCH_ID; } - else if(rPropName == u"FillBitmapName"_ustr) + else if(rPropName == u"FillBitmapName") { aStyleFamily = XmlStyleFamily::SD_FILL_IMAGE_ID; } |