diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-02-03 10:04:58 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-02-03 10:04:58 -0330 |
commit | 0c9eca09e0140dbdc6e954d8d1475cf99c52073d (patch) | |
tree | 674c29c884de6cb8a86f3ccabd2d1d69334133d4 /cpp/demo/Glacier2/chat/Client.cpp | |
parent | Fixed compiler warning/error (diff) | |
download | ice-0c9eca09e0140dbdc6e954d8d1475cf99c52073d.tar.bz2 ice-0c9eca09e0140dbdc6e954d8d1475cf99c52073d.tar.xz ice-0c9eca09e0140dbdc6e954d8d1475cf99c52073d.zip |
ICE-5814 build linix/osx demos with high warning levels in git
Diffstat (limited to 'cpp/demo/Glacier2/chat/Client.cpp')
-rw-r--r-- | cpp/demo/Glacier2/chat/Client.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/demo/Glacier2/chat/Client.cpp b/cpp/demo/Glacier2/chat/Client.cpp index 91e65fbe6df..e18e71c841f 100644 --- a/cpp/demo/Glacier2/chat/Client.cpp +++ b/cpp/demo/Glacier2/chat/Client.cpp @@ -54,8 +54,8 @@ public: virtual Glacier2::SessionPrx createSession() { - ChatSessionPrx session; - while(!session) + ChatSessionPrx sess; + while(!sess) { cout << "This demo accepts any user-id / password combination.\n"; @@ -71,7 +71,7 @@ public: try { - session = ChatSessionPrx::uncheckedCast(router()->createSession(id, pw)); + sess = ChatSessionPrx::uncheckedCast(router()->createSession(id, pw)); break; } catch(const Glacier2::PermissionDeniedException& ex) @@ -83,7 +83,7 @@ public: cout << "cannot create session:\n" << ex.reason << endl; } } - return session; + return sess; } virtual int |