Validate the value passed to AssTime's constructor rather than allowing the creation of bad times

Originally committed to SVN as r6060.
This commit is contained in:
Thomas Goyne 2011-12-22 21:18:54 +00:00
parent 515ed54f1d
commit 21f94ae72e
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@
/// @brief AssTime constructors /// @brief AssTime constructors
AssTime::AssTime () : time(0) { } AssTime::AssTime() : time(0) { }
AssTime::AssTime (int time) : time(time) { } AssTime::AssTime(int time) { SetMS(time); }