VirtualBox

Changeset 933 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 15, 2007 7:06:12 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Cosmetic refactoring.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/COMDefs.h

    r469 r933  
    231231     *  operation.
    232232     */
    233     HRESULT lastRC() const { return rc; }
     233    HRESULT lastRC() const { return mRC; }
    234234
    235235    /**
     
    243243
    244244    /* no arbitrary instance creations */
    245     COMBase() : rc (S_OK) {};
     245    COMBase() : mRC (S_OK) {};
    246246
    247247#if !defined (Q_OS_WIN32)
    248     static nsIComponentManager *componentManager;
    249     static nsIEventQueue* eventQ;
    250     static ipcIDConnectService *dconnectService;
    251     static PRUint32 vboxServerID;
    252 
    253     static XPCOMEventQSocketListener *socketListener;
     248    static nsIComponentManager *gComponentManager;
     249    static nsIEventQueue* gEventQ;
     250    static ipcIDConnectService *gDConnectService;
     251    static PRUint32 gVBoxServerID;
     252
     253    static XPCOMEventQSocketListener *gSocketListener;
    254254#endif
    255255
     
    360360    void fetchErrorInfo (IUnknown * /*callee*/, const GUID * /*calleeIID*/) const {}
    361361
    362     mutable HRESULT rc;
     362    mutable HRESULT mRC;
    363363
    364364    friend class COMErrorInfo;
     
    381381     *  represents a failure (i.e. CInterface::isOk() is false).
    382382     */
    383     COMErrorInfo errorInfo() const { return errInfo; }
     383    COMErrorInfo errorInfo() const { return mErrInfo; }
    384384
    385385protected:
     
    389389
    390390    void fetchErrorInfo (IUnknown *callee, const GUID *calleeIID) const {
    391         errInfo.fetchFromCurrentThread (callee, calleeIID);
    392     }
    393 
    394     mutable COMErrorInfo errInfo;
     391        mErrInfo.fetchFromCurrentThread (callee, calleeIID);
     392    }
     393
     394    mutable COMErrorInfo mErrInfo;
    395395};
    396396
     
    458458    /* constructors & destructor */
    459459
    460     CInterface() : iface (NULL) {}
    461 
    462     CInterface (const CInterface &that) : B (that), iface (that.iface) {
    463         addref (iface);
     460    CInterface() : mIface (NULL) {}
     461
     462    CInterface (const CInterface &that) : B (that), mIface (that.mIface)
     463    {
     464        addref (mIface);
    464465    }
    465466
    466467    CInterface (const CUnknown &that);
    467468
    468     CInterface (I *i) : iface (i) { addref (iface); }
    469 
    470     virtual ~CInterface() { release (iface); }
     469    CInterface (I *i) : mIface (i) { addref (mIface); }
     470
     471    virtual ~CInterface() { release (mIface); }
    471472
    472473    /* utility methods */
    473474
    474     void createInstance (const CLSID &clsid) {
    475         AssertMsg (!iface, ("Instance is already non-NULL\n"));
    476         if (!iface)
     475    void createInstance (const CLSID &clsid)
     476    {
     477        AssertMsg (!mIface, ("Instance is already non-NULL\n"));
     478        if (!mIface)
    477479        {
    478480#if defined (Q_OS_WIN32)
    479             B::rc = CoCreateInstance (clsid, NULL, CLSCTX_ALL,
    480                                    _ATL_IIDOF (I), (void**) &iface);
     481            B::mRC = CoCreateInstance (clsid, NULL, CLSCTX_ALL,
     482                                       _ATL_IIDOF (I), (void**) &mIface);
    481483#else
    482484            /* first, try to create an instance within the in-proc server
    483485             * (for compatibility with Win32) */
    484             B::rc = B::componentManager->CreateInstance (
    485                 clsid, nsnull, NS_GET_IID (I), (void**) &iface
    486             );
    487             if (FAILED (B::rc) && B::dconnectService && B::vboxServerID) {
     486            B::mRC = B::gComponentManager->
     487                CreateInstance (clsid, nsnull, NS_GET_IID (I), (void**) &mIface);
     488            if (FAILED (B::mRC) && B::gDConnectService && B::gVBoxServerID)
     489            {
    488490                /* now try the out-of-proc server if it exists */
    489                 B::rc = B::dconnectService->CreateInstance (
    490                     B::vboxServerID, clsid,
    491                     NS_GET_IID (I), (void**) &iface
    492                 );
     491                B::mRC = B::gDConnectService->
     492                    CreateInstance (B::gVBoxServerID, clsid,
     493                                    NS_GET_IID (I), (void**) &mIface);
    493494            }
    494495#endif
     
    500501    }
    501502
    502     void attach (I *i) {
     503    void attach (I *i)
     504    {
    503505        /* be aware of self (from COM point of view) assignment */
    504         I *old_iface = iface;
    505         iface = i;
    506         addref (iface);
     506        I *old_iface = mIface;
     507        mIface = i;
     508        addref (mIface);
    507509        release (old_iface);
    508         B::rc = S_OK;
     510        B::mRC = S_OK;
    509511    };
    510512
    511     void attachUnknown (IUnknown *i) {
     513    void attachUnknown (IUnknown *i)
     514    {
    512515        /* be aware of self (from COM point of view) assignment */
    513         I *old_iface = iface;
    514         iface = NULL;
    515         B::rc = S_OK;
     516        I *old_iface = mIface;
     517        mIface = NULL;
     518        B::mRC = S_OK;
    516519        if (i)
    517520#if defined (Q_OS_WIN32)
    518             B::rc = i->QueryInterface (_ATL_IIDOF (I), (void**) &iface);
    519 #else
    520             B::rc = i->QueryInterface (NS_GET_IID (I), (void**) &iface);
     521            B::mRC = i->QueryInterface (_ATL_IIDOF (I), (void**) &mIface);
     522#else
     523            B::mRC = i->QueryInterface (NS_GET_IID (I), (void**) &mIface);
    521524#endif
    522525        release (old_iface);
    523526    };
    524527
    525     void detach() { release (iface); iface = NULL; }
    526 
    527     bool isNull() const { return iface == NULL; }
    528 
    529     bool isOk() const { return !isNull() && SUCCEEDED (B::rc); }
     528    void detach() { release (mIface); mIface = NULL; }
     529
     530    bool isNull() const { return mIface == NULL; }
     531
     532    bool isOk() const { return !isNull() && SUCCEEDED (B::mRC); }
    530533
    531534    /* utility operators */
    532535
    533     CInterface &operator= (const CInterface &that) {
    534         attach (that.iface);
     536    CInterface &operator= (const CInterface &that)
     537    {
     538        attach (that.mIface);
    535539        B::operator= (that);
    536540        return *this;
    537541    }
    538542
    539 #ifdef VBOX_WITH_DEBUGGER_GUI
    540     /** @todo bird: dmik, perhaps I missed something, but I didn't find anything equivalent
    541      * to this. feel free to fix &/| remove this hack. */
    542     I *getInterface() { return iface; }
    543 #endif
    544 
    545     bool operator== (const CInterface &that) const { return iface == that.iface; }
    546     bool operator!= (const CInterface &that) const { return iface != that.iface; }
     543    I *iface() const { return mIface; }
     544
     545    bool operator== (const CInterface &that) const { return mIface == that.mIface; }
     546    bool operator!= (const CInterface &that) const { return mIface != that.mIface; }
    547547
    548548    CInterface &operator= (const CUnknown &that);
     
    553553    static void release (I *i) { if (i) i->Release(); }
    554554
    555     mutable I *iface;
     555    mutable I *mIface;
    556556};
    557557
     
    565565
    566566    template <class C>
    567     explicit CUnknown (const C &that) {
    568         iface = NULL;
    569         if (that.iface)
     567    explicit CUnknown (const C &that)
     568    {
     569        mIface = NULL;
     570        if (that.mIface)
    570571#if defined (Q_OS_WIN32)
    571             rc = that.iface->QueryInterface (_ATL_IIDOF (IUnknown), (void**) &iface);
    572 #else
    573             rc = that.iface->QueryInterface (NS_GET_IID (IUnknown), (void**) &iface);
    574 #endif
    575         if (SUCCEEDED (rc)) {
    576             rc = that.lastRC();
    577             errInfo = that.errorInfo();
     572            mRC = that.mIface->QueryInterface (_ATL_IIDOF (IUnknown), (void**) &mIface);
     573#else
     574            mRC = that.mIface->QueryInterface (NS_GET_IID (IUnknown), (void**) &mIface);
     575#endif
     576        if (SUCCEEDED (mRC)) {
     577            mRC = that.lastRC();
     578            mErrInfo = that.errorInfo();
    578579        }
    579580    }
    580581    /* specialization for CUnknown */
    581582    CUnknown (const CUnknown &that) : CInterface <IUnknown, COMBaseWithEI> () {
    582         iface = that.iface;
    583         addref (iface);
     583        mIface = that.mIface;
     584        addref (mIface);
    584585        COMBaseWithEI::operator= (that);
    585586    }
     
    588589    CUnknown &operator= (const C &that) {
    589590        /* be aware of self (from COM point of view) assignment */
    590         IUnknown *old_iface = iface;
    591         iface = NULL;
    592         rc = S_OK;
     591        IUnknown *old_iface = mIface;
     592        mIface = NULL;
     593        mRC = S_OK;
    593594#if defined (Q_OS_WIN32)
    594         if (that.iface)
    595             rc = that.iface->QueryInterface (_ATL_IIDOF (IUnknown), (void**) &iface);
    596 #else
    597         if (that.iface)
    598             rc = that.iface->QueryInterface (NS_GET_IID (IUnknown), (void**) &iface);
    599 #endif
    600         if (SUCCEEDED (rc)) {
    601             rc = that.lastRC();
    602             errInfo = that.errorInfo();
     595        if (that.mIface)
     596            mRC = that.mIface->QueryInterface (_ATL_IIDOF (IUnknown), (void**) &mIface);
     597#else
     598        if (that.mIface)
     599            mRC = that.mIface->QueryInterface (NS_GET_IID (IUnknown), (void**) &mIface);
     600#endif
     601        if (SUCCEEDED (mRC)) {
     602            mRC = that.lastRC();
     603            mErrInfo = that.errorInfo();
    603604        }
    604605        release (old_iface);
     
    607608    /* specialization for CUnknown */
    608609    CUnknown &operator= (const CUnknown &that) {
    609         attach (that.iface);
     610        attach (that.mIface);
    610611        COMBaseWithEI::operator= (that);
    611612        return *this;
    612613    }
    613614
    614     IUnknown *&ifaceRef() { return iface; };
    615     IUnknown *ifaceRef() const { return iface; };
     615    /* @internal Used in wrappers. */
     616    IUnknown *&ifaceRef() { return mIface; };
    616617};
    617618
     
    620621template <class I, class B>
    621622inline CInterface <I, B>::CInterface (const CUnknown &that)
    622     : iface (NULL)
    623 {
    624     attachUnknown (that.ifaceRef());
    625     if (SUCCEEDED (B::rc))
     623    : mIface (NULL)
     624{
     625    attachUnknown (that.iface());
     626    if (SUCCEEDED (B::mRC))
    626627        B::operator= ((B &) that);
    627628}
     
    630631inline CInterface <I, B> &CInterface <I, B>::operator =(const CUnknown &that)
    631632{
    632     attachUnknown (that.ifaceRef());
    633     if (SUCCEEDED (B::rc))
     633    attachUnknown (that.iface());
     634    if (SUCCEEDED (B::mRC))
    634635        B::operator= ((B &) that);
    635636    return *this;
  • trunk/src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl

    r469 r933  
    465465        <xsl:text>::GetCount () const {&#x0A;</xsl:text>
    466466        <xsl:text>    ULONG count = 0;&#x0A;</xsl:text>
    467         <xsl:text>    Assert (iface);&#x0A;</xsl:text>
    468         <xsl:text>    if (!iface)&#x0A;        return count;&#x0A;</xsl:text>
    469         <xsl:text>    rc = iface->COMGETTER(Count) (&amp;count);&#x0A;</xsl:text>
     467        <xsl:text>    Assert (mIface);&#x0A;</xsl:text>
     468        <xsl:text>    if (!mIface)&#x0A;        return count;&#x0A;</xsl:text>
     469        <xsl:text>    mRC = mIface->COMGETTER(Count) (&amp;count);&#x0A;</xsl:text>
    470470        <xsl:call-template name="tryComposeFetchErrorInfo"/>
    471471        <xsl:text>    return count;&#x0A;</xsl:text>
     
    479479        <xsl:text>    </xsl:text><xsl:apply-templates select="@type"/>
    480480        <xsl:text> item;&#x0A;</xsl:text>
    481         <xsl:text>    Assert (iface);&#x0A;</xsl:text>
    482         <xsl:text>    if (!iface)&#x0A;        return item;&#x0A;</xsl:text>
    483         <xsl:text>    rc = iface->GetItemAt (index, &amp;item.iface);&#x0A;</xsl:text>
     481        <xsl:text>    Assert (mIface);&#x0A;</xsl:text>
     482        <xsl:text>    if (!mIface)&#x0A;        return item;&#x0A;</xsl:text>
     483        <xsl:text>    mRC = mIface->GetItemAt (index, &amp;item.mIface);&#x0A;</xsl:text>
    484484        <xsl:call-template name="tryComposeFetchErrorInfo"/>
    485485        <xsl:text>    return item;&#x0A;</xsl:text>
     
    493493        <xsl:text>    </xsl:text><xsl:apply-templates select="@enumerator"/>
    494494        <xsl:text> enumerator;&#x0A;</xsl:text>
    495         <xsl:text>    Assert (iface);&#x0A;</xsl:text>
    496         <xsl:text>    if (!iface)&#x0A;        return enumerator;&#x0A;</xsl:text>
    497         <xsl:text>    rc = iface->Enumerate (&amp;enumerator.iface);&#x0A;</xsl:text>
     495        <xsl:text>    Assert (mIface);&#x0A;</xsl:text>
     496        <xsl:text>    if (!mIface)&#x0A;        return enumerator;&#x0A;</xsl:text>
     497        <xsl:text>    mRC = mIface->Enumerate (&amp;enumerator.mIface);&#x0A;</xsl:text>
    498498        <xsl:call-template name="tryComposeFetchErrorInfo"/>
    499499        <xsl:text>    return enumerator;&#x0A;</xsl:text>
     
    507507        <xsl:text>::HasMore () const {&#x0A;</xsl:text>
    508508        <xsl:text>    BOOL more = FALSE;&#x0A;</xsl:text>
    509         <xsl:text>    Assert (iface);&#x0A;</xsl:text>
    510         <xsl:text>    if (!iface)&#x0A;        return more;&#x0A;</xsl:text>
    511         <xsl:text>    rc = iface->HasMore (&amp;more);&#x0A;</xsl:text>
     509        <xsl:text>    Assert (mIface);&#x0A;</xsl:text>
     510        <xsl:text>    if (!mIface)&#x0A;        return more;&#x0A;</xsl:text>
     511        <xsl:text>    mRC = mIface->HasMore (&amp;more);&#x0A;</xsl:text>
    512512        <xsl:call-template name="tryComposeFetchErrorInfo"/>
    513513        <xsl:text>    return more;&#x0A;</xsl:text>
     
    521521        <xsl:text>    </xsl:text><xsl:apply-templates select="@type"/>
    522522        <xsl:text> next;&#x0A;</xsl:text>
    523         <xsl:text>    Assert (iface);&#x0A;</xsl:text>
    524         <xsl:text>    if (!iface)&#x0A;        return next;&#x0A;</xsl:text>
    525         <xsl:text>    rc = iface->GetNext (&amp;next.iface);&#x0A;</xsl:text>
     523        <xsl:text>    Assert (mIface);&#x0A;</xsl:text>
     524        <xsl:text>    if (!mIface)&#x0A;        return next;&#x0A;</xsl:text>
     525        <xsl:text>    mRC = mIface->GetNext (&amp;next.mIface);&#x0A;</xsl:text>
    526526        <xsl:call-template name="tryComposeFetchErrorInfo"/>
    527527        <xsl:text>    return next;&#x0A;</xsl:text>
     
    622622                <xsl:text> {&#x0A;</xsl:text>
    623623                <!-- iface assertion -->
    624                 <xsl:text>    Assert (iface);&#x0A;</xsl:text>
    625                 <xsl:text>    if (!iface)&#x0A;        return;&#x0A;</xsl:text>
     624                <xsl:text>    Assert (mIface);&#x0A;</xsl:text>
     625                <xsl:text>    if (!mIface)&#x0A;        return;&#x0A;</xsl:text>
    626626                <!-- method call -->
    627627                <xsl:call-template name="composeMethodCall">
     
    667667                <xsl:text>;&#x0A;</xsl:text>
    668668                <!-- iface assertion -->
    669                 <xsl:text>    Assert (iface);&#x0A;</xsl:text>
    670                 <xsl:text>    if (!iface)&#x0A;        return a_</xsl:text>
     669                <xsl:text>    Assert (mIface);&#x0A;</xsl:text>
     670                <xsl:text>    if (!mIface)&#x0A;        return a_</xsl:text>
    671671                <!-- ### xsl:call-template name="capitalize">
    672672                    <xsl:with-param name="str" select="$return/@name"/>
     
    762762<xsl:template name="composeMethodCall">
    763763    <xsl:param name="isSetter" select="''"/>
    764     <xsl:text>    rc = iface-></xsl:text>
     764    <xsl:text>    mRC = mIface-></xsl:text>
    765765    <xsl:choose>
    766766        <!-- attribute method call -->
     
    850850        <xsl:otherwise>
    851851            <xsl:if test="$supports='strict' or $supports='yes'">
    852                 <xsl:text>    if (FAILED (rc)) {&#x0A;</xsl:text>
    853                 <xsl:text>        fetchErrorInfo (iface, &amp;COM_IIDOF (Base::Iface));&#x0A;</xsl:text>
     852                <xsl:text>    if (FAILED (mRC)) {&#x0A;</xsl:text>
     853                <xsl:text>        fetchErrorInfo (mIface, &amp;COM_IIDOF (Base::Iface));&#x0A;</xsl:text>
    854854                <xsl:if test="$supports='strict'">
    855855                    <xsl:text>        AssertMsg (errInfo.isFullAvailable(), </xsl:text>
    856                     <xsl:text>("for RC=0x%08X\n", rc));&#x0A;</xsl:text>
     856                    <xsl:text>("for RC=0x%08X\n", mRC));&#x0A;</xsl:text>
    857857                </xsl:if>
    858858                <xsl:text>    }&#x0A;</xsl:text>
     
    962962                    <xsl:choose>
    963963                        <xsl:when test="@type='$unknown'">
    964                             <xsl:text>.ifaceRef()</xsl:text>
     964                            <xsl:text>.iface()</xsl:text>
    965965                        </xsl:when>
    966966                        <xsl:otherwise>
    967                             <xsl:text>.iface</xsl:text>
     967                            <xsl:text>.mIface</xsl:text>
    968968                        </xsl:otherwise>
    969969                    </xsl:choose>
     
    980980                        </xsl:when>
    981981                        <xsl:otherwise>
    982                             <xsl:text>.iface</xsl:text>
     982                            <xsl:text>.mIface</xsl:text>
    983983                        </xsl:otherwise>
    984984                    </xsl:choose>
  • trunk/src/VBox/Frontends/VirtualBox/src/COMDefs.cpp

    r675 r933  
    6666#include <VBox/com/assert.h>
    6767
    68 nsIComponentManager *COMBase::componentManager = nsnull;
    69 nsIEventQueue* COMBase::eventQ = nsnull;
    70 ipcIDConnectService *COMBase::dconnectService = nsnull;
    71 PRUint32 COMBase::vboxServerID = 0;
    72 
    73 XPCOMEventQSocketListener *COMBase::socketListener = 0;
     68nsIComponentManager *COMBase::gComponentManager = nsnull;
     69nsIEventQueue* COMBase::gEventQ = nsnull;
     70ipcIDConnectService *COMBase::gDConnectService = nsnull;
     71PRUint32 COMBase::gVBoxServerID = 0;
     72
     73XPCOMEventQSocketListener *COMBase::gSocketListener = 0;
    7474
    7575/**
     
    8383public:
    8484
    85     XPCOMEventQSocketListener (nsIEventQueue *eq) {
    86         eventQ = eq;
    87         notifier = new QSocketNotifier (
    88             eventQ->GetEventQueueSelectFD(), QSocketNotifier::Read,
    89             this, "XPCOMEventQSocketNotifier"
    90         );
    91         QObject::connect(
    92             notifier, SIGNAL( activated (int) ),
    93             this, SLOT( processEvents() )
    94         );
     85    XPCOMEventQSocketListener (nsIEventQueue *eq)
     86    {
     87        mEventQ = eq;
     88        mNotifier = new QSocketNotifier (mEventQ->GetEventQueueSelectFD(),
     89                                         QSocketNotifier::Read, this,
     90                                         "XPCOMEventQSocketNotifier");
     91        QObject::connect (mNotifier, SIGNAL (activated (int)),
     92                          this, SLOT (processEvents()));
    9593    }
    9694
    9795public slots:
    9896
    99     void processEvents() {
    100         eventQ->ProcessPendingEvents();
    101     }
     97    void processEvents() { mEventQ->ProcessPendingEvents(); }
    10298
    10399private:
    104     QSocketNotifier *notifier;
    105     nsIEventQueue *eventQ;
     100
     101    QSocketNotifier *mNotifier;
     102    nsIEventQueue *mEventQ;
    106103};
    107104
     
    129126#else
    130127
    131     if (componentManager)
     128    if (gComponentManager)
    132129    {
    133130        LogFlow (("COMBase::initializeCOM(): END\n"));
     
    174171            // get the component manager
    175172            rc = registrar->QueryInterface (NS_GET_IID (nsIComponentManager),
    176                                             (void**) &componentManager);
     173                                            (void**) &gComponentManager);
    177174            if (SUCCEEDED (rc))
    178175            {
     
    180177                // gets created upon XPCOM startup, so it will use the main (this)
    181178                // thread's event queue to receive IPC events)
    182                 rc = NS_GetMainEventQ (&eventQ);
     179                rc = NS_GetMainEventQ (&gEventQ);
    183180#ifdef DEBUG
    184181                BOOL isNative = FALSE;
    185                 eventQ->IsQueueNative (&isNative);
     182                gEventQ->IsQueueNative (&isNative);
    186183                AssertMsg (isNative, ("The event queue must be native"));
    187184#endif
    188                 socketListener = new XPCOMEventQSocketListener (eventQ);
     185                gSocketListener = new XPCOMEventQSocketListener (gEventQ);
    189186
    190187                // get the IPC service
     
    195192                    // get the VirtualBox out-of-proc server ID
    196193                    rc = ipcServ->ResolveClientName ("VirtualBoxServer",
    197                                                      &vboxServerID);
     194                                                     &gVBoxServerID);
    198195                    if (SUCCEEDED (rc))
    199196                    {
    200197                        // get the DConnect service
    201                         rc = serviceManager->GetServiceByContractID (
    202                             IPC_DCONNECTSERVICE_CONTRACTID,
    203                             NS_GET_IID (ipcIDConnectService),
    204                             (void **) &dconnectService
    205                         );
     198                        rc = serviceManager->
     199                            GetServiceByContractID (IPC_DCONNECTSERVICE_CONTRACTID,
     200                                                    NS_GET_IID (ipcIDConnectService),
     201                                                    (void **) &gDConnectService);
    206202                    }
    207203                }
     
    229225    CoUninitialize();
    230226#else
    231     if (componentManager)
     227    if (gComponentManager)
    232228    {
    233229        PRBool isOnCurrentThread = true;
    234         if (eventQ)
    235             eventQ->IsOnCurrentThread (&isOnCurrentThread);
     230        if (gEventQ)
     231            gEventQ->IsOnCurrentThread (&isOnCurrentThread);
    236232
    237233        if (isOnCurrentThread)
    238234        {
    239235            LogFlow (("COMBase::cleanupCOM(): doing cleanup...\n"));
    240             if (socketListener)
    241                 delete socketListener;
    242             if (dconnectService)
    243                 dconnectService->Release();
    244             if (eventQ)
    245                 eventQ->Release();
    246             componentManager->Release();
     236            if (gSocketListener)
     237                delete gSocketListener;
     238            if (gDConnectService)
     239                gDConnectService->Release();
     240            if (gEventQ)
     241                gEventQ->Release();
     242            gComponentManager->Release();
    247243            NS_ShutdownXPCOM (nsnull);
    248244            XPCOMGlueShutdown();
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r831 r933  
    22202220    if (dbg_gui)
    22212221        return true;
    2222     int rc = DBGGuiCreate (csession.getInterface(), &dbg_gui);
     2222    int rc = DBGGuiCreate (csession.iface(), &dbg_gui);
    22232223    if (VBOX_SUCCESS (rc))
    22242224    {
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