Changeset 85315 in vbox for trunk/src/VBox/Main/idl
- Timestamp:
- Jul 13, 2020 5:32:13 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139293
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/comimpl.xsl
r85310 r85315 147 147 </xsl:when> 148 148 <xsl:otherwise> 149 <xsl:value-of select="' Bstr'"/>149 <xsl:value-of select="'Utf8Str'"/> 150 150 </xsl:otherwise> 151 151 </xsl:choose> … … 263 263 <xsl:value-of select="concat(' ', $member, ' = ', $param, '; ')"/> 264 264 <xsl:if test="$internal!='yes'"> 265 <xsl:text> 265 <xsl:text> return S_OK; </xsl:text> 266 266 </xsl:if> 267 267 </xsl:otherwise> … … 283 283 </xsl:call-template> 284 284 </xsl:variable> 285 <xsl:value-of select="concat(' SafeArray<', $elemtype,'> result; ')"/> 286 <xsl:value-of select="concat(' ', $member, '.cloneTo(result); ')"/> 287 <xsl:value-of select="concat(' result.detachTo(ComSafeArrayOutArg(', $param, ')); ')"/> 285 <!-- @todo String arrays probably needs work, I doubt we're generating sensible code for them at the moment. --> 286 <xsl:text> SafeArray<</xsl:text><xsl:value-of select="$elemtype"/><xsl:text>> result; </xsl:text> 287 <xsl:text> HRESULT hrc = </xsl:text><xsl:value-of select="$member"/><xsl:text>.cloneTo(result); </xsl:text> 288 <xsl:text> if (SUCCEEDED(hrc)) </xsl:text> 289 <xsl:text> result.detachTo(ComSafeArrayOutArg(</xsl:text><xsl:value-of select="$param"/><xsl:text>)); </xsl:text> 290 <xsl:text> return hrc; </xsl:text> 288 291 </xsl:when> 289 292 <xsl:otherwise> 290 293 <xsl:choose> 291 294 <xsl:when test="($type='wstring') or ($type = 'uuid')"> 292 <xsl:value-of select="concat(' ', $member, '.cloneTo(', $param, '); ')"/> 295 <xsl:text> return </xsl:text><xsl:value-of select="$member"/><xsl:text>.cloneToEx(</xsl:text> 296 <xsl:value-of select="$param"/><xsl:text>); </xsl:text> 293 297 </xsl:when> 294 298 <xsl:when test="count(key('G_keyInterfacesByName', $type)) > 0"> 295 <xsl:value-of select="concat(' ', $member, '.queryInterfaceTo(', $param, '); ')"/> 299 <xsl:text> return </xsl:text><xsl:value-of select="$member"/><xsl:text>.queryInterfaceTo(</xsl:text> 300 <xsl:value-of select="$param"/><xsl:text>); </xsl:text> 296 301 </xsl:when> 297 302 <xsl:otherwise> 298 <xsl:value-of select="concat(' *', $param, ' = ', $member, '; ')"/> 303 <xsl:text> *</xsl:text><xsl:value-of select="$param"/><xsl:text> = </xsl:text> 304 <xsl:value-of select="$member"/><xsl:text>; </xsl:text> 305 <xsl:text> return S_OK; </xsl:text> 299 306 </xsl:otherwise> 300 307 </xsl:choose> … … 544 551 <xsl:with-param name="safearray" select="@safearray" /> 545 552 </xsl:call-template> 546 <xsl:value-of select=" ' return S_OK; '" />547 553 <xsl:value-of select=" ' } '" /> 548 554
Note:
See TracChangeset
for help on using the changeset viewer.