summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Object.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-09 17:22:16 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-09 17:22:16 +0000
commit3509cc24c4f3f6eb5fcf308afc080c7f6407d0c2 (patch)
tree0c97f7264aeb58ebb83d9f3eecdc50313f35e246 /cpp/src/Ice/Object.cpp
parentinitial support for proxies, marshalling (diff)
downloadice-3509cc24c4f3f6eb5fcf308afc080c7f6407d0c2.tar.bz2
ice-3509cc24c4f3f6eb5fcf308afc080c7f6407d0c2.tar.xz
ice-3509cc24c4f3f6eb5fcf308afc080c7f6407d0c2.zip
performance improvements
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r--cpp/src/Ice/Object.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp
index bf6e44e148c..410816f6c96 100644
--- a/cpp/src/Ice/Object.cpp
+++ b/cpp/src/Ice/Object.cpp
@@ -52,12 +52,12 @@ Ice::Object::ice_hash() const
return reinterpret_cast<Int>(this);
}
-const char* Ice::Object::__classIds[] =
+string Ice::Object::__classIds[] =
{
"::Ice::Object"
};
-const char**
+string*
Ice::Object::__getClassIds()
{
return __classIds;
@@ -94,7 +94,7 @@ Ice::Object::___ice_ping(Incoming&, const Current& __current)
return DispatchOK;
}
-const char* Ice::Object::__all[] =
+string Ice::Object::__all[] =
{
"ice_isA",
"ice_ping"
@@ -103,12 +103,9 @@ const char* Ice::Object::__all[] =
DispatchStatus
Ice::Object::__dispatch(Incoming& in, const Current& current)
{
- const char** b = __all;
- const char** e = __all + sizeof(__all) / sizeof(const char*);
- pair<const char**, const char**> r = equal_range(b, e, current.operation);
+ pair<string*, string*> r = equal_range(__all, __all + sizeof(__all) / sizeof(string), current.operation);
if (r.first == r.second)
{
- cout << "xxx" << endl;
return DispatchOperationNotExist;
}