VirtualBox

Changeset 21404 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jul 8, 2009 3:19:42 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49780
Message:

IPRT, Main: make ministring throw std::bad_alloc on allocation failure; remove isEmpty() and isNull(), change Main code to using length() instead; second try

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/string.cpp

    r21394 r21404  
    139139Utf8Str& Utf8Str::toLower()
    140140{
    141     if (!isEmpty())
     141    if (length())
    142142        ::RTStrToLower(m_psz);
    143143    return *this;
     
    146146Utf8Str& Utf8Str::toUpper()
    147147{
    148     if (!isEmpty())
     148    if (length())
    149149        ::RTStrToUpper(m_psz);
    150150    return *this;
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