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/src/IceUtil/ThreadException.cpp | |
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/src/IceUtil/ThreadException.cpp')
-rw-r--r-- | cpp/src/IceUtil/ThreadException.cpp | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/cpp/src/IceUtil/ThreadException.cpp b/cpp/src/IceUtil/ThreadException.cpp index 857fc962987..0cafa6612bd 100644 --- a/cpp/src/IceUtil/ThreadException.cpp +++ b/cpp/src/IceUtil/ThreadException.cpp @@ -22,10 +22,12 @@ IceUtil::ThreadSyscallException::ThreadSyscallException(const char* file, int li { } -string +string IceUtil::ThreadSyscallException::_name = "IceUtil::ThreadSyscallException"; + +const string& IceUtil::ThreadSyscallException::ice_name() const { - return "IceUtil::ThreadSyscallException"; + return _name; } void @@ -88,10 +90,12 @@ IceUtil::ThreadLockedException::ThreadLockedException(const char* file, int line { } -string +string IceUtil::ThreadLockedException::_name = "IceUtil::ThreadLockedException"; + +const string& IceUtil::ThreadLockedException::ice_name() const { - return "IceUtil::ThreadLockedException"; + return _name; } IceUtil::Exception* @@ -111,10 +115,12 @@ IceUtil::ThreadStartedException::ThreadStartedException(const char* file, int li { } -string +string IceUtil::ThreadStartedException::_name = "IceUtil::ThreadStartedException"; + +const string& IceUtil::ThreadStartedException::ice_name() const { - return "IceUtil::ThreadStartedException"; + return _name; } IceUtil::Exception* @@ -134,10 +140,12 @@ IceUtil::ThreadNotStartedException::ThreadNotStartedException(const char* file, { } -string +string IceUtil::ThreadNotStartedException::_name = "IceUtil::ThreadNotStartedException"; + +const string& IceUtil::ThreadNotStartedException::ice_name() const { - return "IceUtil::ThreadNotStartedException"; + return _name; } IceUtil::Exception* |