summaryrefslogtreecommitdiff
path: root/cpp/demo
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-10-02 11:48:54 -0400
committerBernard Normier <bernard@zeroc.com>2007-10-02 11:48:54 -0400
commit2cb718a85b417fb6a58be04fe1f102f733b8d39c (patch)
tree26549f37c7307037f0bf8bf0d42b6c1da7eaeb4b /cpp/demo
parentFixed bug 2503 (diff)
downloadice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.tar.bz2
ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.tar.xz
ice-2cb718a85b417fb6a58be04fe1f102f733b8d39c.zip
Squashed commit of the following:
commit 0ba15449d9dd44933d82cb643efded9dee12c5af Author: Bernard Normier <bernard@zeroc.com> Date: Tue Oct 2 11:48:07 2007 -0400 Documented updates commit cf49ee5a73bc62d1b6814dec5d9f288f0f45901d Author: Bernard Normier <bernard@zeroc.com> Date: Tue Oct 2 11:38:25 2007 -0400 Optimized implementation of various Prx ice_xxx functions/methods commit 706209d6d1a4e894fecf19dd1c0c3b6f12ef5842 Author: Bernard Normier <bernard@zeroc.com> Date: Fri Sep 28 14:34:02 2007 -0400 Updated code-generation to "overwrite" various Ice::ObjectPrx ice_ operations.
Diffstat (limited to 'cpp/demo')
-rw-r--r--cpp/demo/Ice/hello/Client.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/cpp/demo/Ice/hello/Client.cpp b/cpp/demo/Ice/hello/Client.cpp
index 1620c93f7c0..d45ff0ca8d6 100644
--- a/cpp/demo/Ice/hello/Client.cpp
+++ b/cpp/demo/Ice/hello/Client.cpp
@@ -54,10 +54,10 @@ HelloClient::run(int argc, char* argv[])
cerr << argv[0] << ": invalid proxy" << endl;
return EXIT_FAILURE;
}
- HelloPrx oneway = HelloPrx::uncheckedCast(twoway->ice_oneway());
- HelloPrx batchOneway = HelloPrx::uncheckedCast(twoway->ice_batchOneway());
- HelloPrx datagram = HelloPrx::uncheckedCast(twoway->ice_datagram());
- HelloPrx batchDatagram = HelloPrx::uncheckedCast(twoway->ice_batchDatagram());
+ HelloPrx oneway = twoway->ice_oneway();
+ HelloPrx batchOneway = twoway->ice_batchOneway();
+ HelloPrx datagram = twoway->ice_datagram();
+ HelloPrx batchDatagram = twoway->ice_batchDatagram();
bool secure = false;
int timeout = -1;
@@ -121,9 +121,9 @@ HelloClient::run(int argc, char* argv[])
timeout = -1;
}
- twoway = HelloPrx::uncheckedCast(twoway->ice_timeout(timeout));
- oneway = HelloPrx::uncheckedCast(oneway->ice_timeout(timeout));
- batchOneway = HelloPrx::uncheckedCast(batchOneway->ice_timeout(timeout));
+ twoway = twoway->ice_timeout(timeout);
+ oneway = oneway->ice_timeout(timeout);
+ batchOneway = batchOneway->ice_timeout(timeout);
if(timeout == -1)
{
@@ -158,11 +158,11 @@ HelloClient::run(int argc, char* argv[])
{
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));
+ twoway = twoway->ice_secure(secure);
+ oneway = oneway->ice_secure(secure);
+ batchOneway = batchOneway->ice_secure(secure);
+ datagram = datagram->ice_secure(secure);
+ batchDatagram = batchDatagram->ice_secure(secure);
if(secure)
{