diff options
author | Marc Laukien <marc@zeroc.com> | 2001-12-09 19:02:44 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-12-09 19:02:44 +0000 |
commit | 8e67ea70f5eb11ff4f0c2bfdb289322466eb3277 (patch) | |
tree | 0bd7662b1132171a8b10aa6574864148c70b7597 /cpp/src/Ice/Object.cpp | |
parent | performance improvements (diff) | |
download | ice-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.cpp | 10 |
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; |