diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-12-13 22:56:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-12-13 22:56:25 +0100 |
commit | 1b6dc2adb8e7f6a6a1894ced614ba4da369fecec (patch) | |
tree | 5e7ead1805dda1a667a058883f9df664bab47cb4 /officecfg | |
parent | a9d1d2f35c7c763fdf59e0350478f583f9d934f8 (diff) |
Also escape dots in entity names used as C++ identifiers.
Diffstat (limited to 'officecfg')
-rw-r--r-- | officecfg/registry/cppheader.xsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/officecfg/registry/cppheader.xsl b/officecfg/registry/cppheader.xsl index 2f8141d2ba70..5071fba7ee7e 100644 --- a/officecfg/registry/cppheader.xsl +++ b/officecfg/registry/cppheader.xsl @@ -144,7 +144,7 @@ <xsl:param name="path"/> <xsl:if test=".//prop or .//set"> <xsl:text>namespace </xsl:text> - <xsl:value-of select="translate(@oor:name, '-', '_')"/> + <xsl:value-of select="translate(@oor:name, '-.', '__')"/> <xsl:text> {
</xsl:text> <xsl:text>
</xsl:text> <xsl:apply-templates select="group|set|prop"> @@ -161,7 +161,7 @@ <xsl:template match="set"> <xsl:param name="path"/> - <xsl:variable name="name" select="translate(@oor:name, '-', '_')"/> + <xsl:variable name="name" select="translate(@oor:name, '-.', '__')"/> <xsl:text>struct </xsl:text> <xsl:value-of select="$name"/> <xsl:text>: public unotools::ConfigurationSet< </xsl:text> @@ -186,7 +186,7 @@ <xsl:template match="prop"> <xsl:param name="path"/> - <xsl:variable name="name" select="translate(@oor:name, '-', '_')"/> + <xsl:variable name="name" select="translate(@oor:name, '-.', '__')"/> <xsl:text>struct </xsl:text> <xsl:value-of select="$name"/> <xsl:text>: public unotools::</xsl:text> |