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:
@@ -129,12 +129,12 @@
|
||||
<xsl:text>: public comphelper::ConfigurationGroup< </xsl:text>
|
||||
<xsl:value-of select="$name"/>
|
||||
<xsl:text>> {
</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>"); }
</xsl:text>
|
||||
<xsl:text>"); return PATH; }
</xsl:text>
|
||||
<xsl:text>
</xsl:text>
|
||||
<xsl:apply-templates select="group|set|prop">
|
||||
<xsl:with-param name="path">
|
||||
@@ -163,12 +163,12 @@
|
||||
<xsl:text>: public comphelper::ConfigurationSet< </xsl:text>
|
||||
<xsl:value-of select="$name"/>
|
||||
<xsl:text>> {
</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>"); }
</xsl:text>
|
||||
<xsl:text>"); return PATH; }
</xsl:text>
|
||||
<xsl:text>private:
</xsl:text>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="$name"/>
|
||||
@@ -252,12 +252,12 @@
|
||||
<xsl:text>> </xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:text>> {
</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>"); }
</xsl:text>
|
||||
<xsl:text>"); return PATH; }
</xsl:text>
|
||||
<xsl:text>private:
</xsl:text>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="$name"/>
|
||||
|
||||
Reference in New Issue
Block a user