From 0226e09b7b0247f6ed2f16af4b973dd5a8a46e8d Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 3 Mar 2009 11:47:08 +0100 Subject: throw std::string instead of char * (zprikryl) --- lib/Utils/DebugDump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Utils/DebugDump.cpp') diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index 315b564..068cfa5 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -43,7 +43,7 @@ void CDebugDump::Open(const std::string& pDir) { if (m_bOpened) { - throw "CDebugDump::CDebugDump(): DebugDump is already opened."; + throw std::string("CDebugDump::CDebugDump(): DebugDump is already opened."); } m_sDebugDumpDir = pDir; std::string lockPath = m_sDebugDumpDir + "/.lock"; @@ -138,7 +138,7 @@ void CDebugDump::Create(const std::string& pDir) { if (m_bOpened) { - throw "CDebugDump::CDebugDump(): DebugDump is already opened."; + throw std::string("CDebugDump::CDebugDump(): DebugDump is already opened."); } m_sDebugDumpDir = pDir; -- cgit