From f8c590adc8f09f360b75caadf6aa85d9a37788d5 Mon Sep 17 00:00:00 2001 From: Shinya Kitaoka Date: Apr 25 2016 04:58:50 +0000 Subject: Merge pull request #223 from ideasman42/linux-timer-message-fix Correct class use with TTimer on Linux --- diff --git a/toonz/sources/common/tapptools/ttimer.cpp b/toonz/sources/common/tapptools/ttimer.cpp index 60a398c..00bf68e 100644 --- a/toonz/sources/common/tapptools/ttimer.cpp +++ b/toonz/sources/common/tapptools/ttimer.cpp @@ -1,6 +1,7 @@ #include "ttimer.h" +#include "tthreadmessage.h" #include "texception.h" #ifdef _WIN32 @@ -178,16 +179,16 @@ public: TGenericTimerAction *m_action; }; -class SendCommandMSG : public TThread::Msg +class SendCommandMSG : public TThread::Message { TTimer::Imp *m_ztimp; public: - SendCommandMSG(TTimer::Imp *ztimp) : TThread::Msg(), m_ztimp(ztimp) + SendCommandMSG(TTimer::Imp *ztimp) : TThread::Message(), m_ztimp(ztimp) { } ~SendCommandMSG() {} - TThread::Msg *clone() const { return new SendCommandMSG(*this); } + TThread::Message *clone() const { return new SendCommandMSG(*this); } void onDeliver() { if (m_ztimp->m_action)