VirtualBox

Changeset 78404 in vbox


Ignore:
Timestamp:
May 6, 2019 6:57:29 PM (5 years ago)
Author:
vboxsync
Message:

removed Utf8Str::assignEx() and replaced RTCString::compare() by RTCString::endsWith()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImplMoveVM.cpp

    r76592 r78404  
    16051605    {
    16061606        Utf8Str ext = bstrLocation;
    1607         ext.assignEx(RTPathSuffix(ext.c_str()));//returns extension with dot (".iso")
    16081607
    16091608        //only ISO image is moved. Otherwise adding some information into log file
    1610         int equality = ext.compare(".iso", Utf8Str::CaseInsensitive);
    1611         if (equality != false)
     1609        bool fIso = ext.endsWith(".iso", Utf8Str::CaseInsensitive);
     1610        if (fIso == false)
    16121611        {
    16131612            LogRelFunc(("Skipping file %s. Only ISO images are supported for now.\n",
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