diff options
Diffstat (limited to 'plugins/MirandaG15')
-rw-r--r-- | plugins/MirandaG15/src/CAppletManager.cpp | 2 | ||||
-rw-r--r-- | plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp | 6 | ||||
-rw-r--r-- | plugins/MirandaG15/src/LCDFramework/CLCDOutputManager.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp index 4b9692dd87..80181272d1 100644 --- a/plugins/MirandaG15/src/CAppletManager.cpp +++ b/plugins/MirandaG15/src/CAppletManager.cpp @@ -661,7 +661,7 @@ void CAppletManager::FinishMessageJob(SMessageJob *pJob) dbei.eventType = EVENTTYPE_MESSAGE; dbei.flags = DBEF_SENT | DBEF_UTF; dbei.szModule = szProto; - dbei.timestamp = time(nullptr); + dbei.timestamp = time(0); // Check if protocoll is valid if (dbei.szModule == nullptr) return; diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp index 2ec4f18332..f704f1ee08 100644 --- a/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp +++ b/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp @@ -21,9 +21,9 @@ DWORD WINAPI notificationCallback(IN int, }
-void __cdecl initializeDrawingThread(void *pParam)
+void __cdecl initializeDrawingThread(CLCDConnectionLogitech *pParam)
{
- ((CLCDConnectionLogitech*)pParam)->runDrawingThread();
+ pParam->runDrawingThread();
}
void CLCDConnectionLogitech::runDrawingThread() {
@@ -109,7 +109,7 @@ CLCDConnectionLogitech::CLCDConnectionLogitech() CLCDConnectionLogitech::m_pInstance = this;
- m_hDrawingThread = mir_forkthread(initializeDrawingThread, (void*)this);
+ m_hDrawingThread = mir_forkThread<CLCDConnectionLogitech>(initializeDrawingThread, this);
}
//************************************************************************
diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDOutputManager.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDOutputManager.cpp index a40b18d2a8..53cd59b701 100644 --- a/plugins/MirandaG15/src/LCDFramework/CLCDOutputManager.cpp +++ b/plugins/MirandaG15/src/LCDFramework/CLCDOutputManager.cpp @@ -64,7 +64,7 @@ CLCDScreen *CLCDOutputManager::GetActiveScreen() //************************************************************************ bool CLCDOutputManager::Initialize(tstring strAppletName,bool bAutostart, bool bConfigDialog) { - srand ( time(nullptr) ); + srand ( time(0) ); InitDebug(); |