diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-26 15:53:00 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-04-26 15:53:00 +0000 |
commit | 66718269a2cfc05703e8ecfbc95f76f3c6b22161 (patch) | |
tree | 9d425c010636f1c1a4930a11a15f194e94f78002 | |
parent | 2105de2e1be94d18a1cb5dfd6afcc33a788bc640 (diff) |
IEView: fix localtime() call
git-svn-id: http://svn.miranda-ng.org/main/trunk@16768 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/IEView/src/HTMLBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp index 9001a14640..272b08e891 100644 --- a/plugins/IEView/src/HTMLBuilder.cpp +++ b/plugins/IEView/src/HTMLBuilder.cpp @@ -175,8 +175,8 @@ void HTMLBuilder::setLastEventTime(DWORD t) bool HTMLBuilder::isSameDate(time_t time1, time_t time2)
{
- tm *tm_t1 = localtime(&time1), *tm_t2 = localtime(&time2);
- return tm_t1->tm_year == tm_t2->tm_year && tm_t1->tm_mon == tm_t2->tm_mon && tm_t1->tm_mday == tm_t2->tm_mday;
+ tm tm_t1 = *localtime(&time1), tm_t2 = *localtime(&time2);
+ return tm_t1.tm_year == tm_t2.tm_year && tm_t1.tm_mon == tm_t2.tm_mon && tm_t1.tm_mday == tm_t2.tm_mday;
}
|