Changeset 85305 in vbox for trunk/src/VBox/Main/idl
- Timestamp:
- Jul 13, 2020 10:25:50 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/comimpl.xsl
r85300 r85305 202 202 <xsl:param name="type"/> 203 203 <xsl:param name="safearray"/> 204 <xsl:param name="internal"/> 204 205 205 206 <xsl:choose> … … 220 221 <xsl:otherwise> 221 222 <xsl:value-of select="concat(' ', $member, ' = ', $param, '; ')"/> 222 <xsl:value-of select=" ' return S_OK; '" /> 223 <xsl:if test="$internal!='yes'"> 224 <xsl:text> return S_OK; </xsl:text> 225 </xsl:if> 223 226 </xsl:otherwise> 224 227 </xsl:choose> … … 507 510 <xsl:with-param name="param" select="$pName" /> 508 511 <xsl:with-param name="safearray" select="@safearray" /> 512 <xsl:with-param name="internal" select="'no'" /> 509 513 </xsl:call-template> 510 514 <xsl:value-of select=" ' } '" /> … … 512 516 513 517 <xsl:value-of select=" ' // purely internal setter '" /> 514 <xsl:value-of select="concat(' inline HRESULT set_', @name,'(',$pTypeNameIn, ') { ')" /> 518 <xsl:text> inline </xsl:text> 519 <xsl:choose> 520 <xsl:when test="(@safearray='yes') or (@type='wstring') or (@type = 'uuid')"> 521 <xsl:text>HRESULT</xsl:text> 522 </xsl:when> 523 <xsl:otherwise> 524 <xsl:text>void</xsl:text> 525 </xsl:otherwise> 526 </xsl:choose> 527 <xsl:value-of select="concat(' set_', @name,'(',$pTypeNameIn, ') { ')" /> 515 528 <xsl:call-template name="genSetParam"> 516 529 <xsl:with-param name="type" select="@type" /> … … 518 531 <xsl:with-param name="param" select="$pName" /> 519 532 <xsl:with-param name="safearray" select="@safearray" /> 533 <xsl:with-param name="internal" select="'yes'" /> 520 534 </xsl:call-template> 521 535 <xsl:value-of select=" ' } '" />
Note:
See TracChangeset
for help on using the changeset viewer.