summaryrefslogtreecommitdiff
path: root/cpp/demo/IceBox/hello/Client.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2015-01-30 09:29:42 -0330
committerDwayne Boone <dwayne@zeroc.com>2015-01-30 09:29:42 -0330
commit0a2a4d818fb5c276e6ba008c29b591683d5025bd (patch)
treebef463540bcd1ba853b75c8f265845251e819fd6 /cpp/demo/IceBox/hello/Client.cpp
parentFixed (ICE-6276) - Add support for JavaScript source maps (diff)
downloadice-0a2a4d818fb5c276e6ba008c29b591683d5025bd.tar.bz2
ice-0a2a4d818fb5c276e6ba008c29b591683d5025bd.tar.xz
ice-0a2a4d818fb5c276e6ba008c29b591683d5025bd.zip
ICE-5814 allow demos to be built with /W4 on Windows
Diffstat (limited to 'cpp/demo/IceBox/hello/Client.cpp')
-rw-r--r--cpp/demo/IceBox/hello/Client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/demo/IceBox/hello/Client.cpp b/cpp/demo/IceBox/hello/Client.cpp
index 437fb90db3c..a827c9f270f 100644
--- a/cpp/demo/IceBox/hello/Client.cpp
+++ b/cpp/demo/IceBox/hello/Client.cpp
@@ -67,7 +67,7 @@ HelloClient::run(int argc, char* argv[])
menu();
- char c;
+ char c = 'x';
do
{
try
@@ -115,13 +115,13 @@ HelloClient::run(int argc, char* argv[])
else if(c == 'S')
{
secure = !secure;
-
+
twoway = HelloPrx::uncheckedCast(twoway->ice_secure(secure));
oneway = HelloPrx::uncheckedCast(oneway->ice_secure(secure));
batchOneway = HelloPrx::uncheckedCast(batchOneway->ice_secure(secure));
datagram = HelloPrx::uncheckedCast(datagram->ice_secure(secure));
batchDatagram = HelloPrx::uncheckedCast(batchDatagram->ice_secure(secure));
-
+
if(secure)
{
cout << "secure mode is now on" << endl;