diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-14 16:20:03 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-14 16:20:03 +0000 |
commit | 909bb608a222169ac6dd3c4e88cfaf4f147e4cd7 (patch) | |
tree | b7af1a3cb0240a05a223b2fb8924fd362e950ffa /cpp/src/Ice/Object.cpp | |
parent | more exception cleanup (diff) | |
download | ice-909bb608a222169ac6dd3c4e88cfaf4f147e4cd7.tar.bz2 ice-909bb608a222169ac6dd3c4e88cfaf4f147e4cd7.tar.xz ice-909bb608a222169ac6dd3c4e88cfaf4f147e4cd7.zip |
more exception fixes
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r-- | cpp/src/Ice/Object.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp index 04f3fed7c17..8f5a9fa16aa 100644 --- a/cpp/src/Ice/Object.cpp +++ b/cpp/src/Ice/Object.cpp @@ -66,7 +66,7 @@ Ice::Object::____ping(Incoming&) return DispatchOK; } -string Ice::Object::__names[] = +const char* Ice::Object::__all[] = { "_isA" "_ping" @@ -75,15 +75,15 @@ string Ice::Object::__names[] = DispatchStatus Ice::Object::__dispatch(Incoming& in, const string& s) { - string* b = __names; - string* e = __names + sizeof(__names) / sizeof(string); - pair<string*, string*> r = equal_range(b, e, s); + const char** b = __all; + const char** e = __all + sizeof(__all) / sizeof(const char*); + pair<const char**, const char**> r = equal_range(b, e, s); if (r.first == r.second) { return DispatchOperationNotExist; } - switch (r.first - __names) + switch (r.first - __all) { case 0: { |