From d20b8f5a3db4b0f0f12577318cb54b67616ded56 Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Tue, 16 Dec 2003 01:12:38 +0000 Subject: Changed Ice::Exception::ice_name() to return const string&. --- cpp/src/IceUtil/ThreadException.cpp | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'cpp/src/IceUtil/ThreadException.cpp') 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* -- cgit v1.2.3