VirtualBox

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


Ignore:
Timestamp:
Jul 7, 2009 6:52:12 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49721
Message:

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

Location:
trunk/src/VBox/Frontends
Files:
2 edited

Legend:

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

    r21362 r21369  
    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
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r21362 r21369  
    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,
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