summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-15 15:56:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-15 20:59:10 +0100
commitb947e1899e8c3bacd134418870a0fd6bee4101bc (patch)
tree1fb039e45db0519fed7cc8a9b4efcaa6dd286d73
parentfe65c692cfbf128d55c75207f6d1452713fd72f6 (diff)
use OUStringLiteral in SVGFilter
Change-Id: Ib01737e8d679ae69612e6612cc39337681953fee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125250 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--filter/source/svg/svgexport.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index bda6aa46cc8c..a9d02b3142ca 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -210,7 +210,7 @@ public:
}
virtual void growCharSet( SVGFilter::UCharSetMapMap & aTextFieldCharSets ) const override
{
- static const OUString sFieldId = aOOOAttrFooterField;
+ static constexpr OUStringLiteral sFieldId = aOOOAttrFooterField;
implGrowCharSet( aTextFieldCharSets, text, sFieldId );
}
};
@@ -2649,9 +2649,9 @@ IMPL_LINK( SVGFilter, CalcFieldHdl, EditFieldInfo*, pInfo, void )
}
bool bHasCharSetMap = mTextFieldCharSets.find( mCreateOjectsCurrentMasterPage ) != mTextFieldCharSets.end();
- static const OUString aHeaderId( NSPREFIX "header-field" );
- static const OUString aFooterId( aOOOAttrFooterField );
- static const OUString aDateTimeId( aOOOAttrDateTimeField );
+ static constexpr OUStringLiteral aHeaderId( NSPREFIX "header-field" );
+ static constexpr OUStringLiteral aFooterId( aOOOAttrFooterField );
+ static constexpr OUStringLiteral aDateTimeId( aOOOAttrDateTimeField );
static const OUString aVariableDateTimeId( aOOOAttrDateTimeField + "-variable" );
const UCharSet * pCharSet = nullptr;