summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/stringConverter/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/stringConverter/Client.cpp')
-rw-r--r--cpp/test/Ice/stringConverter/Client.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/test/Ice/stringConverter/Client.cpp b/cpp/test/Ice/stringConverter/Client.cpp
index 89530b5b45b..401570a2a89 100644
--- a/cpp/test/Ice/stringConverter/Client.cpp
+++ b/cpp/test/Ice/stringConverter/Client.cpp
@@ -41,9 +41,7 @@ main(int argc, char* argv[])
// (we just used the codeset for as default internal code for
// stringConverter below)
//
-
- useLocale = (setlocale(LC_ALL, "fr_FR.ISO8859-15") != 0
- || setlocale(LC_ALL, "fr_FR.iso885915@euro") != 0);
+ useLocale = (setlocale(LC_ALL, "fr_FR.ISO8859-15") != 0 || setlocale(LC_ALL, "fr_FR.iso885915@euro") != 0);
#endif
#if defined(_WIN32)
@@ -97,8 +95,9 @@ main(int argc, char* argv[])
int
Client::run(int, char*[])
{
- Test::MyObjectPrx proxy =
- Test::MyObjectPrx::uncheckedCast(communicator()->stringToProxy("test:default -p 12010"));
+ Test::MyObjectPrxPtr proxy =
+ ICE_UNCHECKED_CAST(Test::MyObjectPrx,
+ communicator()->stringToProxy("test:" + getTestEndpoint(communicator(), 0)));
char oe = char(0xBD); // A single character in ISO Latin 9
string msg = string("tu me fends le c") + oe + "ur!";