now compiles properly in MSVC

This commit is contained in:
Rasmus Karlsson 2017-01-05 16:43:01 +01:00
parent 7262c11458
commit e6e3f7d143

View file

@ -3,6 +3,8 @@
#include "colorscheme.h" #include "colorscheme.h"
#include "emotes.h" #include "emotes.h"
#include <ctime>
LazyLoadedImage* Message::badgeStaff = new LazyLoadedImage(new QImage(":/images/staff_bg.png")); LazyLoadedImage* Message::badgeStaff = new LazyLoadedImage(new QImage(":/images/staff_bg.png"));
LazyLoadedImage* Message::badgeAdmin = new LazyLoadedImage(new QImage(":/images/admin_bg.png")); LazyLoadedImage* Message::badgeAdmin = new LazyLoadedImage(new QImage(":/images/admin_bg.png"));
LazyLoadedImage* Message::badgeModerator = new LazyLoadedImage(new QImage(":/images/moderator_bg.png")); LazyLoadedImage* Message::badgeModerator = new LazyLoadedImage(new QImage(":/images/moderator_bg.png"));
@ -24,7 +26,7 @@ Message::Message(const IrcPrivateMessage& ircMessage, const Channel& Channel)
// timestamps // timestamps
auto iterator = ircMessage.tags().find("tmi-sent-ts"); auto iterator = ircMessage.tags().find("tmi-sent-ts");
time_t time = std::time(NULL); std::time_t time = std::time(NULL);
if (iterator != ircMessage.tags().end()) if (iterator != ircMessage.tags().end())
{ {