diff options
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r-- | cpp/src/Ice/Object.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp index 3050bbd67df..5d4f4fdca3a 100644 --- a/cpp/src/Ice/Object.cpp +++ b/cpp/src/Ice/Object.cpp @@ -39,11 +39,16 @@ Ice::Object::ice_hash() const return static_cast<Int>(reinterpret_cast<Long>(this) >> 4); } -static const string __Ice__Object_ids[] = +namespace +{ + +const string __Ice__Object_ids[] = { "::Ice::Object" }; +} + bool Ice::Object::ice_isA(const string& s, const Current&) const { @@ -300,7 +305,10 @@ Ice::__patch__ObjectPtr(void* __addr, ObjectPtr& v) *p = v; } -static string +namespace +{ + +string operationModeToString(OperationMode mode) { switch(mode) @@ -320,6 +328,8 @@ operationModeToString(OperationMode mode) return os.str(); } +} + void Ice::Object::__checkMode(OperationMode expected, OperationMode received) { |