From: Christian P. <cp...@us...> - 2005-01-24 01:23:07
|
Update of /cvsroot/pclasses/pclasses2/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8763/src Modified Files: Time.cpp Log Message: Fixed throw-specifiers. Index: Time.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/Time.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Time.cpp 19 Jan 2005 18:48:39 -0000 1.3 +++ Time.cpp 24 Jan 2005 01:22:56 -0000 1.4 @@ -140,7 +140,7 @@ return (!operator==(t)); } -Time& Time::operator+=(const TimeSpan& sp) throw() +Time& Time::operator+=(const TimeSpan& sp) throw(OverflowError) { _usec += sp.usecs(); if ( _usec > (1000 * 1000) - 1 ) @@ -169,7 +169,7 @@ return *this; } -Time& Time::operator-=(const TimeSpan& sp) throw() +Time& Time::operator-=(const TimeSpan& sp) throw(OverflowError) { if ( _usec < sp.usecs() ) { @@ -200,14 +200,14 @@ return *this; } -Time operator+(const Time& t, const TimeSpan& sp) throw() +Time operator+(const Time& t, const TimeSpan& sp) throw(OverflowError) { Time ret = t; ret += sp; return ret; } -Time operator-(const Time& t, const TimeSpan& sp) throw() +Time operator-(const Time& t, const TimeSpan& sp) throw(OverflowError) { Time ret = t; ret -= sp; |