diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-01-30 09:29:42 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-01-30 09:29:42 -0330 |
commit | 0a2a4d818fb5c276e6ba008c29b591683d5025bd (patch) | |
tree | bef463540bcd1ba853b75c8f265845251e819fd6 /cpp/demo/IceGrid/allocate/Client.cpp | |
parent | Fixed (ICE-6276) - Add support for JavaScript source maps (diff) | |
download | ice-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/IceGrid/allocate/Client.cpp')
-rw-r--r-- | cpp/demo/IceGrid/allocate/Client.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cpp/demo/IceGrid/allocate/Client.cpp b/cpp/demo/IceGrid/allocate/Client.cpp index d7ab8270ae7..5afe84517d0 100644 --- a/cpp/demo/IceGrid/allocate/Client.cpp +++ b/cpp/demo/IceGrid/allocate/Client.cpp @@ -65,8 +65,7 @@ HelloClient::run(int argc, char* argv[]) } IceGrid::SessionPrx session; - - while(true) + while(!session) { cout << "This demo accepts any user-id / password combination.\n"; @@ -114,10 +113,10 @@ HelloClient::run(int argc, char* argv[]) { hello = HelloPrx::checkedCast(session->allocateObjectByType("::Demo::Hello")); } - + menu(); - - char c; + + char c = 'x'; do { try @@ -165,7 +164,7 @@ HelloClient::run(int argc, char* argv[]) } session->destroy(); - + return status; } |