diff options
author | Michi Henning <michi@zeroc.com> | 2003-12-16 01:12:38 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-12-16 01:12:38 +0000 |
commit | d20b8f5a3db4b0f0f12577318cb54b67616ded56 (patch) | |
tree | d9feafb7d1a3890bd1bd5cc0f0564a9f6c76de04 /cpp/include/IceUtil/ThreadException.h | |
parent | more tracing (diff) | |
download | ice-d20b8f5a3db4b0f0f12577318cb54b67616ded56.tar.bz2 ice-d20b8f5a3db4b0f0f12577318cb54b67616ded56.tar.xz ice-d20b8f5a3db4b0f0f12577318cb54b67616ded56.zip |
Changed Ice::Exception::ice_name() to return const string&.
Diffstat (limited to 'cpp/include/IceUtil/ThreadException.h')
-rw-r--r-- | cpp/include/IceUtil/ThreadException.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/cpp/include/IceUtil/ThreadException.h b/cpp/include/IceUtil/ThreadException.h index b834fb692f7..2a39b93d2d8 100644 --- a/cpp/include/IceUtil/ThreadException.h +++ b/cpp/include/IceUtil/ThreadException.h @@ -25,7 +25,7 @@ class ICE_UTIL_API ThreadSyscallException : public Exception public: ThreadSyscallException(const char*, int, int); - virtual std::string ice_name() const; + virtual const std::string& ice_name() const; virtual void ice_print(std::ostream&) const; virtual Exception* ice_clone() const; virtual void ice_throw() const; @@ -34,6 +34,7 @@ public: private: const int _error; + static ::std::string _name; }; class ICE_UTIL_API ThreadLockedException : public Exception @@ -41,9 +42,13 @@ class ICE_UTIL_API ThreadLockedException : public Exception public: ThreadLockedException(const char*, int); - virtual std::string ice_name() const; + virtual const std::string& ice_name() const; virtual Exception* ice_clone() const; virtual void ice_throw() const; + +private: + + static ::std::string _name; }; class ICE_UTIL_API ThreadStartedException : public Exception @@ -51,9 +56,13 @@ class ICE_UTIL_API ThreadStartedException : public Exception public: ThreadStartedException(const char*, int); - virtual std::string ice_name() const; + virtual const std::string& ice_name() const; virtual Exception* ice_clone() const; virtual void ice_throw() const; + +private: + + static ::std::string _name; }; class ICE_UTIL_API ThreadNotStartedException : public Exception @@ -61,9 +70,13 @@ class ICE_UTIL_API ThreadNotStartedException : public Exception public: ThreadNotStartedException(const char*, int); - virtual std::string ice_name() const; + virtual const std::string& ice_name() const; virtual Exception* ice_clone() const; virtual void ice_throw() const; + +private: + + static ::std::string _name; }; } |