VirtualBox

Changeset 22665 in vbox


Ignore:
Timestamp:
Sep 1, 2009 2:03:09 PM (15 years ago)
Author:
vboxsync
Message:

webservice: use -1 for allocating a single object with soap_new_* functions, as per documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/websrv-cpp.xsl

    r22266 r22665  
    248248    <xsl:call-template name="emitPrologue"><xsl:with-param name="fSkipHRESULT" select="'1'"/></xsl:call-template>
    249249
    250     <xsl:value-of select="concat('        resp = soap_new_vbox__', $structname, '(soap, 1);')" />
     250    <xsl:value-of select="concat('        resp = soap_new_vbox__', $structname, '(soap, -1);')" />
    251251    <xsl:call-template name="emitNewline" />
    252252    <xsl:call-template name="emitNewline" />
     
    964964      <xsl:variable name="collectiontype" select="//collection[@name=$type]/@type" />
    965965      <xsl:variable name="targetwsmap" select="//interface[@name=$collectiontype]/@wsmap" />
    966       <xsl:value-of select="concat('soap_new_vbox__ArrayOf', $collectiontype, '(soap, 1);')" />
     966      <xsl:value-of select="concat('soap_new_vbox__ArrayOf', $collectiontype, '(soap, -1);')" />
    967967      <xsl:call-template name="emitNewlineIndent8" />
    968968      <xsl:variable name="enumerator" select="concat('comcall_', $callerprefix, $name, '_enum')" />
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette