VirtualBox

Changeset 21360 in vbox for trunk/src


Ignore:
Timestamp:
Jul 7, 2009 4:33:26 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49709
Message:

IPRT: hide ministring::operator bool() to force people to use isEmpty() explicitly

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp

    r20928 r21360  
    202202
    203203            case VINF_GETOPT_NOT_OPTION:
    204                 if (!strOvfFilename)
     204                if (strOvfFilename.isEmpty())
    205205                    strOvfFilename = ValueUnion.psz;
    206206                else
     
    225225    }
    226226
    227     if (!strOvfFilename)
     227    if (strOvfFilename.isEmpty())
    228228        return errorSyntax(USAGE_IMPORTAPPLIANCE, "Not enough arguments for \"import\" command.");
    229229
  • TabularUnified trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r21029 r21360  
    801801        SDL_GetDesktopDisplayMode(&desktop_mode);
    802802        /* create new window */
    803        
     803
    804804        char szTitle[64];
    805805        RTStrPrintf(szTitle, sizeof(szTitle), "SDL window %d", mScreenId);
     
    952952    if (!mScreen || !mSurfVRAM)
    953953        return;
    954    
     954
    955955    /* the source and destination rectangles */
    956956    SDL_Rect srcRect;
     
    11771177
    11781178    /* now the text */
    1179     if (mLabelFont != NULL && mSecureLabelText)
     1179    if (    mLabelFont != NULL
     1180         && !mSecureLabelText.isEmpty()
     1181       )
    11801182    {
    11811183        SDL_Color clrFg = {(mSecureLabelColorFG & 0x00FF0000) >> 16,
  • TabularUnified trunk/src/VBox/Main/ConsoleImpl.cpp

    r21219 r21360  
    66666666
    66676667                /* Load saved state? */
    6668                 if (!!task->mSavedStateFile)
     6668                if (!task->mSavedStateFile.isEmpty())
    66696669                {
    66706670                    LogFlowFunc (("Restoring saved state from '%s'...\n",
  • TabularUnified trunk/src/VBox/Main/SnapshotImpl.cpp

    r19239 r21360  
    412412
    413413    /* state file may be NULL (for offline snapshots) */
    414     if (path && RTPathStartsWith (path, aOldPath))
     414    if (    !path.isEmpty()
     415         && RTPathStartsWith(path, aOldPath)
     416       )
    415417    {
    416418        path = Utf8StrFmt ("%s%s", aNewPath, path.raw() + strlen (aOldPath));
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