VirtualBox

Changeset 36656 in vbox for trunk/include


Ignore:
Timestamp:
Apr 12, 2011 1:16:57 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71131
Message:

com/list: implicit RTCString conversion support

Location:
trunk/include/VBox/com
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/list.h

    r36655 r36656  
    119119    }
    120120
     121    /**
     122     * Implicit conversion to a RTCString list.
     123     *
     124     * This allows the usage of the RTCString::join method with this list type.
     125     *
     126     * @return  a converted const reference to this list.
     127     */
     128    operator const RTCList<RTCString, RTCString*>&()
     129    {
     130        return static_cast<const RTCList<RTCString, RTCString*>&>(*this);
     131    }
     132
    121133    /* Define our own new and delete. */
    122134    RTMEMEF_NEW_AND_DELETE_OPERATORS();
  • trunk/include/VBox/com/mtlist.h

    r36655 r36656  
    119119    }
    120120
     121    /**
     122     * Implicit conversion to a RTCString list.
     123     *
     124     * This allows the usage of the RTCString::join method with this list type.
     125     *
     126     * @return  a converted const reference to this list.
     127     */
     128    operator const RTCMTList<RTCString, RTCString*>&()
     129    {
     130        return static_cast<const RTCList<RTCString, RTCString*>&>(*this);
     131    }
     132
    121133    /* Define our own new and delete. */
    122134    RTMEMEF_NEW_AND_DELETE_OPERATORS();
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