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>
This commit is contained in:
parent
0d859cee05
commit
f16d04c95f
3 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue