diff options
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; |