VirtualBox

Ignore:
Timestamp:
Sep 23, 2010 12:57:52 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66148
Message:

com/string: Remove bool conversion operator and other convenience error operators. They are hiding programming errors (like incorrect empty string checks, and in one case a free of the wrong pointer).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImplTeleporter.cpp

    r31256 r32718  
    956956    HRESULT hrc = ptrProgress.createObject();
    957957    if (FAILED(hrc)) return hrc;
    958     hrc = ptrProgress->init(static_cast<IConsole *>(this), Bstr(tr("Teleporter")), TRUE /*aCancelable*/);
     958    hrc = ptrProgress->init(static_cast<IConsole *>(this),
     959                            Bstr(tr("Teleporter")).raw(),
     960                            TRUE /*aCancelable*/);
    959961    if (FAILED(hrc)) return hrc;
    960962
     
    10931095            {
    10941096                LogRel(("Teleporter: Waiting for incoming VM...\n"));
    1095                 hrc = pProgress->SetNextOperation(Bstr(tr("Waiting for incoming VM")), 1);
     1097                hrc = pProgress->SetNextOperation(Bstr(tr("Waiting for incoming VM")).raw(), 1);
    10961098                if (SUCCEEDED(hrc))
    10971099                {
     
    12821284    {
    12831285        LogRel(("Teleporter: Incoming VM from %RTnaddr!\n", &Addr));
    1284         hrc = pState->mptrProgress->SetNextOperation(BstrFmt(tr("Teleporting VM from %RTnaddr"), &Addr), 8);
     1286        hrc = pState->mptrProgress->SetNextOperation(BstrFmt(tr("Teleporting VM from %RTnaddr"), &Addr).raw(), 8);
    12851287    }
    12861288    else
    12871289    {
    12881290        LogRel(("Teleporter: Incoming VM!\n"));
    1289         hrc = pState->mptrProgress->SetNextOperation(Bstr(tr("Teleporting VM")), 8);
     1291        hrc = pState->mptrProgress->SetNextOperation(Bstr(tr("Teleporting VM")).raw(), 8);
    12901292    }
    12911293    AssertMsg(SUCCEEDED(hrc) || hrc == E_FAIL, ("%Rhrc\n", hrc));
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