VirtualBox

Ignore:
Timestamp:
Sep 23, 2010 12:57:52 PM (15 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/Frontends/VBoxHeadless/testcase/tstHeadless.cpp

    r31070 r32718  
    115115
    116116        // find ID by name
    117         CHECK_ERROR_BREAK(virtualBox, FindMachine(Bstr(name), m.asOutParam()));
     117        CHECK_ERROR_BREAK(virtualBox, FindMachine(Bstr(name).raw(),
     118                                                  m.asOutParam()));
    118119
    119120        if (!strcmp(operation, "on"))
     
    122123            RTPrintf ("Opening a new (remote) session...\n");
    123124            CHECK_ERROR_BREAK (m,
    124                                LaunchVMProcess(session, Bstr("vrdp"),
     125                               LaunchVMProcess(session, Bstr("vrdp").raw(),
    125126                                               NULL, progress.asOutParam()));
    126127
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