summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Proxy.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2009-01-23 17:07:21 -0500
committerBernard Normier <bernard@zeroc.com>2009-01-23 17:07:21 -0500
commit2380e089401d048490da23bc6d71e5687bafbe47 (patch)
tree6d97052d1f93bc2bafcd7fd1a9ebe103544b6cad /cpp/src/Ice/Proxy.cpp
parentFixed permissions (diff)
parent3.3.1 third-party updates (diff)
downloadice-2380e089401d048490da23bc6d71e5687bafbe47.tar.bz2
ice-2380e089401d048490da23bc6d71e5687bafbe47.tar.xz
ice-2380e089401d048490da23bc6d71e5687bafbe47.zip
Merge branch 'R3_3_branch' of cvs:/home/git/ice into R3_3_branch
Conflicts: java/resources/IceGridAdmin/icegridadmin_content_dyn.html java/resources/IceGridAdmin/icegridadmin_content_static.html
Diffstat (limited to 'cpp/src/Ice/Proxy.cpp')
-rw-r--r--cpp/src/Ice/Proxy.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp
index 93da9be9e91..a1121f353c4 100644
--- a/cpp/src/Ice/Proxy.cpp
+++ b/cpp/src/Ice/Proxy.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
@@ -32,6 +32,11 @@ using namespace std;
using namespace Ice;
using namespace IceInternal;
+static const string ice_ping_name = "ice_ping";
+static const string ice_ids_name = "ice_ids";
+static const string ice_id_name = "ice_id";
+static const string ice_isA_name = "ice_isA";
+
::Ice::ObjectPrx
IceInternal::checkedCastImpl(const ObjectPrx& b, const string& f, const string& typeId, const Context* context)
{
@@ -112,7 +117,7 @@ IceProxy::Ice::Object::ice_isA(const string& typeId, const Context* context)
Handle< ::IceDelegate::Ice::Object> __del;
try
{
- __checkTwowayOnly("ice_isA");
+ __checkTwowayOnly(ice_isA_name);
__del = __getDelegate(false);
return __del->ice_isA(typeId, context);
}
@@ -160,7 +165,7 @@ IceProxy::Ice::Object::ice_ids(const Context* context)
Handle< ::IceDelegate::Ice::Object> __del;
try
{
- __checkTwowayOnly("ice_ids");
+ __checkTwowayOnly(ice_ids_name);
__del = __getDelegate(false);
return __del->ice_ids(context);
}
@@ -184,7 +189,7 @@ IceProxy::Ice::Object::ice_id(const Context* context)
Handle< ::IceDelegate::Ice::Object> __del;
try
{
- __checkTwowayOnly("ice_id");
+ __checkTwowayOnly(ice_id_name);
__del = __getDelegate(false);
return __del->ice_id(context);
}
@@ -954,7 +959,9 @@ IceProxy::Ice::Object::__handleExceptionWrapperRelaxed(const ::IceInternal::Hand
// we call this with a const char* and we want to avoid the overhead
// of constructing a string.
//
-
+// NOTE: Remove for 3.4, the generated code no long calls __checkTwowayOnly
+// using a const char*
+//
void
IceProxy::Ice::Object::__checkTwowayOnly(const char* name) const
{
@@ -1094,8 +1101,7 @@ IceDelegateM::Ice::Object::~Object()
bool
IceDelegateM::Ice::Object::ice_isA(const string& __id, const Context* context)
{
- static const string __operation("ice_isA");
- Outgoing __og(__handler.get(), __operation, ::Ice::Nonmutating, context);
+ Outgoing __og(__handler.get(), ice_isA_name, ::Ice::Nonmutating, context);
try
{
BasicStream* __os = __og.os();
@@ -1135,8 +1141,7 @@ IceDelegateM::Ice::Object::ice_isA(const string& __id, const Context* context)
void
IceDelegateM::Ice::Object::ice_ping(const Context* context)
{
- static const string __operation("ice_ping");
- Outgoing __og(__handler.get(), __operation, ::Ice::Nonmutating, context);
+ Outgoing __og(__handler.get(), ice_ping_name, ::Ice::Nonmutating, context);
bool __ok = __og.invoke();
if(!__og.is()->b.empty())
{
@@ -1165,8 +1170,7 @@ IceDelegateM::Ice::Object::ice_ping(const Context* context)
vector<string>
IceDelegateM::Ice::Object::ice_ids(const Context* context)
{
- static const string __operation("ice_ids");
- Outgoing __og(__handler.get(), __operation, ::Ice::Nonmutating, context);
+ Outgoing __og(__handler.get(), ice_ids_name, ::Ice::Nonmutating, context);
vector<string> __ret;
bool __ok = __og.invoke();
try
@@ -1197,8 +1201,7 @@ IceDelegateM::Ice::Object::ice_ids(const Context* context)
string
IceDelegateM::Ice::Object::ice_id(const Context* context)
{
- static const string __operation("ice_id");
- Outgoing __og(__handler.get(), __operation, ::Ice::Nonmutating, context);
+ Outgoing __og(__handler.get(), ice_id_name, ::Ice::Nonmutating, context);
string __ret;
bool __ok = __og.invoke();
try