VirtualBox

Changeset 93701 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 11, 2022 6:58:31 PM (3 years ago)
Author:
vboxsync
Message:

VBoxManage: some Utf8Str optimizations in NAT Network.

File:
1 edited

Legend:

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

    r93287 r93701  
    187187            CHECK_ERROR_BREAK(pNATNet, COMGETTER(NetworkName)(strVal.asOutParam()));
    188188
    189             Utf8Str strValUTF8 = Utf8Str(strVal);
     189            Utf8Str strValUTF8(strVal);
    190190            if (!RTStrSimplePatternMatch(pszFilter,  strValUTF8.c_str()))
    191191                continue;
     
    623623        rcExit = handleNATList(a);
    624624    else
    625         rcExit = errorSyntax(USAGE_NATNETWORK, Nat::tr("Invalid parameter '%s'"), Utf8Str(a->argv[0]).c_str());
     625        rcExit = errorSyntax(USAGE_NATNETWORK, Nat::tr("Invalid parameter '%s'"), a->argv[0]);
    626626    return rcExit;
    627627}
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