diff options
-rw-r--r-- | officecfg/registry/cppheader.xsl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/officecfg/registry/cppheader.xsl b/officecfg/registry/cppheader.xsl index 2cabcf330a49..06d76c190425 100644 --- a/officecfg/registry/cppheader.xsl +++ b/officecfg/registry/cppheader.xsl @@ -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"/> |