summaryrefslogtreecommitdiff
path: root/officecfg/registry/cppheader.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'officecfg/registry/cppheader.xsl')
-rw-r--r--officecfg/registry/cppheader.xsl7
1 files changed, 4 insertions, 3 deletions
diff --git a/officecfg/registry/cppheader.xsl b/officecfg/registry/cppheader.xsl
index 2522aca68d5d..85ccafcf18d9 100644
--- a/officecfg/registry/cppheader.xsl
+++ b/officecfg/registry/cppheader.xsl
@@ -95,7 +95,8 @@
<xsl:text>#include "sal/config.h"&#xA;</xsl:text>
<xsl:text>&#xA;</xsl:text>
<xsl:if test=".//prop or .//set">
- <xsl:if test=".//prop/@oor:nillable = 'true'">
+ <xsl:if
+ test=".//prop[count(@oor:nillable) = 0 or @oor:nillable = 'true']">
<xsl:text>#include "boost/optional.hpp"&#xA;</xsl:text>
</xsl:if>
<xsl:if test=".//prop/@oor:type = 'oor:any'">
@@ -215,7 +216,7 @@
<xsl:text>&lt;</xsl:text>
<xsl:value-of select="$name"/>
<xsl:text>, </xsl:text>
- <xsl:if test="@oor:nillable = 'true'">
+ <xsl:if test="not(@oor:nillable = 'false')">
<xsl:text>boost::optional&lt;</xsl:text>
</xsl:if>
<xsl:choose>
@@ -266,7 +267,7 @@
-->com::sun::star::uno::Sequence&lt;sal_Int8&gt; &gt; </xsl:text>
</xsl:when>
</xsl:choose>
- <xsl:if test="@oor:nillable = 'true'">
+ <xsl:if test="not(@oor:nillable = 'false')">
<xsl:text>&gt; </xsl:text>
</xsl:if>
<xsl:text>&gt; {&#xA;</xsl:text>