diff options
author | Jose <jose@zeroc.com> | 2014-05-02 20:24:00 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-05-02 20:24:00 +0200 |
commit | b48eab05676ec06380f895d8610f28b4b5831707 (patch) | |
tree | aac05dea0302aca912ca19ddc25886ebca506ce7 /cpp/demo/IcePatch2/MFC/PatchClient.cpp | |
parent | ICE-4851 - Use wstrings for input and output data that contain non-ASCII char... (diff) | |
download | ice-b48eab05676ec06380f895d8610f28b4b5831707.tar.bz2 ice-b48eab05676ec06380f895d8610f28b4b5831707.tar.xz ice-b48eab05676ec06380f895d8610f28b4b5831707.zip |
Minor fixes to wstringToString usage in demos.
Diffstat (limited to 'cpp/demo/IcePatch2/MFC/PatchClient.cpp')
-rw-r--r-- | cpp/demo/IcePatch2/MFC/PatchClient.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpp/demo/IcePatch2/MFC/PatchClient.cpp b/cpp/demo/IcePatch2/MFC/PatchClient.cpp index a0043197954..6a1fb3108ea 100644 --- a/cpp/demo/IcePatch2/MFC/PatchClient.cpp +++ b/cpp/demo/IcePatch2/MFC/PatchClient.cpp @@ -46,11 +46,7 @@ CPatchClientApp::InitInstance() Ice::CommunicatorPtr communicator; try { - Ice::StringSeq args; - for(int i = 0; i < __argc; ++i) - { - args.push_back(IceUtil::wstringToString(__wargv[i])); - } + Ice::StringSeq args = Ice::argsToStringSeq(__argc, __wargv); communicator = Ice::initialize(args); } catch(const IceUtil::Exception& ex) |