VirtualBox

Changeset 32780 in vbox for trunk/src/VBox/Main/webservice


Ignore:
Timestamp:
Sep 27, 2010 7:00:22 PM (14 years ago)
Author:
vboxsync
Message:

com/Guid: remove conversion operators to eliminate any compiler surprises. Caught one totally unexpected issue which was indirectly caused by the similar Bstr cleanup, as there still is a Bstr->Guid conversion and thus the Guid magic was triggered

Location:
trunk/src/VBox/Main/webservice
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r32567 r32780  
    954954                            const com::Guid &iid)
    955955{
    956     com::ErrorInfo info(pObj, iid);
     956    com::ErrorInfo info(pObj, iid.ref());
    957957
    958958    WEBDEBUG(("   error, raising SOAP exception\n"));
  • trunk/src/VBox/Main/webservice/vboxweb.h

    r30681 r32780  
    306306        // QueryInterface tests whether p actually supports the templated T interface desired by caller
    307307        T *pT;
    308         pobjUnknown->QueryInterface(guidCaller, (void**)&pT);      // this adds a reference count
     308        pobjUnknown->QueryInterface(guidCaller.ref(), (void**)&pT);      // this adds a reference count
    309309        if (pT)
    310310        {
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