summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Object.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-09 19:02:44 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-09 19:02:44 +0000
commit8e67ea70f5eb11ff4f0c2bfdb289322466eb3277 (patch)
tree0bd7662b1132171a8b10aa6574864148c70b7597 /cpp/src/Ice/Object.cpp
parentperformance improvements (diff)
downloadice-8e67ea70f5eb11ff4f0c2bfdb289322466eb3277.tar.bz2
ice-8e67ea70f5eb11ff4f0c2bfdb289322466eb3277.tar.xz
ice-8e67ea70f5eb11ff4f0c2bfdb289322466eb3277.zip
fixes
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r--cpp/src/Ice/Object.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp
index 410816f6c96..4bdb69d73ab 100644
--- a/cpp/src/Ice/Object.cpp
+++ b/cpp/src/Ice/Object.cpp
@@ -52,13 +52,13 @@ Ice::Object::ice_hash() const
return reinterpret_cast<Int>(this);
}
-string Ice::Object::__classIds[] =
+const string Ice::Object::__classIds[] =
{
"::Ice::Object"
};
-string*
-Ice::Object::__getClassIds()
+const string*
+Ice::Object::__getClassIds() const
{
return __classIds;
}
@@ -103,7 +103,9 @@ string Ice::Object::__all[] =
DispatchStatus
Ice::Object::__dispatch(Incoming& in, const Current& current)
{
- pair<string*, string*> r = equal_range(__all, __all + sizeof(__all) / sizeof(string), current.operation);
+ pair<const string*, const string*> r =
+ equal_range(__all, __all + sizeof(__all) / sizeof(string), current.operation);
+
if (r.first == r.second)
{
return DispatchOperationNotExist;