less OUString construction on hot path (tdf#105575)

Change-Id: Ieb13bf771b238ed022f1d6164f2e40f92f03af66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120418
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2021-08-13 12:13:03 +02:00
parent ebe01a5f01
commit e463cc0c8e
+9 -9
View File
@@ -129,12 +129,12 @@
<xsl:text>: public comphelper::ConfigurationGroup&lt; </xsl:text>
<xsl:value-of select="$name"/>
<xsl:text>&gt; {&#xA;</xsl:text>
<xsl:text> static OUString path() { return OUString(<!--
-->"</xsl:text>
<xsl:text> static OUString path() { static const OUStringLiteral PATH(<!--
-->u"</xsl:text>
<xsl:value-of select="$path"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="@oor:name"/>
<xsl:text>"); }&#xA;</xsl:text>
<xsl:text>"); return PATH; }&#xA;</xsl:text>
<xsl:text>&#xA;</xsl:text>
<xsl:apply-templates select="group|set|prop">
<xsl:with-param name="path">
@@ -163,12 +163,12 @@
<xsl:text>: public comphelper::ConfigurationSet&lt; </xsl:text>
<xsl:value-of select="$name"/>
<xsl:text>&gt; {&#xA;</xsl:text>
<xsl:text> static OUString path() { return OUString(<!--
-->"</xsl:text>
<xsl:text> static OUString path() { static const OUStringLiteral PATH(<!--
-->u"</xsl:text>
<xsl:value-of select="$path"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="@oor:name"/>
<xsl:text>"); }&#xA;</xsl:text>
<xsl:text>"); return PATH; }&#xA;</xsl:text>
<xsl:text>private:&#xA;</xsl:text>
<xsl:text> </xsl:text>
<xsl:value-of select="$name"/>
@@ -252,12 +252,12 @@
<xsl:text>&gt; </xsl:text>
</xsl:if>
<xsl:text>&gt; {&#xA;</xsl:text>
<xsl:text> static OUString path() { return OUString(<!--
-->"</xsl:text>
<xsl:text> static OUString path() { static const OUStringLiteral PATH(<!--
-->u"</xsl:text>
<xsl:value-of select="$path"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="@oor:name"/>
<xsl:text>"); }&#xA;</xsl:text>
<xsl:text>"); return PATH; }&#xA;</xsl:text>
<xsl:text>private:&#xA;</xsl:text>
<xsl:text> </xsl:text>
<xsl:value-of select="$name"/>