From: <sv...@ww...> - 2004-07-02 18:15:56
|
Author: delta Date: 2004-07-02 11:15:50 -0700 (Fri, 02 Jul 2004) New Revision: 1136 Modified: trunk/CSP/CSPSim/Source/InputEvent.cpp Log: Changed exception(char*) to std::runtime_error(const string&) to avoid a syntax error on gcc. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1136 Modified: trunk/CSP/CSPSim/Source/InputEvent.cpp =================================================================== --- trunk/CSP/CSPSim/Source/InputEvent.cpp 2004-07-02 18:14:45 UTC (rev 1135) +++ trunk/CSP/CSPSim/Source/InputEvent.cpp 2004-07-02 18:15:50 UTC (rev 1136) @@ -62,7 +62,7 @@ Replay::Replay(): m_if(g_Config.getString("DemoMode","FileName","Record.csp",true).c_str(),std::ios_base::binary) { if (!m_if) - throw exception("Replay::Replay(): error opening record file in read mode"); + throw std::runtime_error("Replay::Replay(): error opening record file in read mode"); } Replay::~Replay() { |