VirtualBox

Changeset 17745 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Mar 12, 2009 1:28:22 PM (16 years ago)
Author:
vboxsync
Message:

Main: check for null strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/string.h

    r17742 r17745  
    473473    bool endsWith (const Utf8Str &that, CaseSensitivity cs = CaseSensitive) const
    474474    {
     475        if (isNull() || that.isNull())
     476            return false;
     477
    475478        if (length() < that.length())
    476479            return false;
     
    485488    bool startsWith (const Utf8Str &that, CaseSensitivity cs = CaseSensitive) const
    486489    {
     490        if (isNull() || that.isNull())
     491            return false;
     492
    487493        if (length() < that.length())
    488494            return false;
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