VirtualBox

Changeset 53493 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 10, 2014 9:16:41 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97230
Message:

FE/VBoxManage: std::string::find returns npos not -1 if nothing matches

File:
1 edited

Legend:

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

    r53312 r53493  
    401401                    Bstr bstrAddress;
    402402
    403                     AssertReturn(pos != -1, errorArgument("invalid loopback string"));
     403                    AssertReturn(pos != std::string::npos, errorArgument("invalid loopback string"));
    404404
    405405                    address = it->substr(0, pos);
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