mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
now compiles properly in MSVC
This commit is contained in:
parent
7262c11458
commit
e6e3f7d143
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue