fixed: a new created session doesn't have a correct time set

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@719 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-02-18 09:33:15 +00:00
parent c8a57f2046
commit ca5421347a
3 changed files with 11 additions and 2 deletions

View File

@@ -15,8 +15,13 @@
Session::Session()
{
SetTimeToNow();
Clear();
}
void Session::SetTimeToNow()
{
time = std::time(0);
tm_time = Time(time);
@@ -28,6 +33,7 @@ Session::Session()
}
// this doesn't clear times
void Session::Clear()
{
id = 0;