VirtualBox

Changeset 49678 in vbox


Ignore:
Timestamp:
Nov 27, 2013 12:56:31 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90937
Message:

Main/idl/comimpl.xsl: fix long standing bug (only visible with XPCOM) where the code generator produces wrong list of implemented interfaces, causing errors with QueryInterface, plus fixing a few places where @ was used where $ is more logical

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/comimpl.xsl

    r47848 r49678  
    196196      <xsl:variable name="elemtype">
    197197        <xsl:call-template name="typeIdl2Back">
    198           <xsl:with-param name="type" select="@type" />
     198          <xsl:with-param name="type" select="$type" />
    199199          <xsl:with-param name="safearray" select="''" />
    200200          <xsl:with-param name="dir" select="'in'" />
     
    219219      <xsl:variable name="elemtype">
    220220        <xsl:call-template name="typeIdl2Back">
    221              <xsl:with-param name="type" select="@type" />
     221             <xsl:with-param name="type" select="$type" />
    222222             <xsl:with-param name="safearray" select="''" />
    223223             <xsl:with-param name="dir" select="'in'" />
     
    328328
    329329  <xsl:choose>
    330     <xsl:when test="$extends='IEvent'">
     330    <xsl:when test="$name='IEvent'">
    331331      <xsl:value-of select="       '#ifdef VBOX_WITH_XPCOM&#10;'" />
    332332      <xsl:value-of select="concat('NS_DECL_CLASSINFO(', $impl, ')&#10;')" />
    333       <xsl:value-of select="concat('NS_IMPL_THREADSAFE_ISUPPORTS',$depth,'_CI(', $impl, ', ', $name, $parents, ', IEvent)&#10;')" />
     333      <xsl:value-of select="concat('NS_IMPL_THREADSAFE_ISUPPORTS',$depth,'_CI(', $impl, $parents, ', IEvent)&#10;')" />
    334334      <xsl:value-of select="       '#endif&#10;&#10;'"/>
    335335    </xsl:when>
     
    339339        <xsl:with-param name="name" select="$extends" />
    340340        <xsl:with-param name="depth" select="$depth+1" />
    341         <xsl:with-param name="parents" select="concat($parents, ', ', @name)" />
     341        <xsl:with-param name="parents" select="concat($parents, ', ', $name)" />
    342342      </xsl:call-template>
    343343    </xsl:when>
     
    592592    <xsl:with-param name="impl" select="$implName" />
    593593    <xsl:with-param name="name" select="@name" />
    594     <xsl:with-param name="depth" select="'2'" />
     594    <xsl:with-param name="depth" select="'1'" />
    595595    <xsl:with-param name="parents" select="''" />
    596596  </xsl:call-template>
Note: See TracChangeset for help on using the changeset viewer.

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