diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-26 17:25:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-26 17:25:14 +0000 |
commit | 6a1a045e620dba38a7a64070af59d1a91b104921 (patch) | |
tree | a883339faf5d30db219509d86acb090eae77e2b6 /plugins/FTPFileYM/src/deletetimer.cpp | |
parent | 1c023b4c677e8dcf0a776b07d8679a6464d2ee61 (diff) |
massive code cleaning due to numerous name conflicts
git-svn-id: http://svn.miranda-ng.org/main/trunk@15036 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM/src/deletetimer.cpp')
-rw-r--r-- | plugins/FTPFileYM/src/deletetimer.cpp | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/plugins/FTPFileYM/src/deletetimer.cpp b/plugins/FTPFileYM/src/deletetimer.cpp index f177ac081e..624d483553 100644 --- a/plugins/FTPFileYM/src/deletetimer.cpp +++ b/plugins/FTPFileYM/src/deletetimer.cpp @@ -24,15 +24,15 @@ DeleteTimer &deleteTimer = DeleteTimer::getInstance(); extern Options &opt;
void DeleteTimer::init()
-{
+{
timerId = 0;
- if (opt.bAutoDelete)
- this->start();
+ if (opt.bAutoDelete)
+ start();
}
void DeleteTimer::deinit()
-{
- this->stop();
+{
+ stop();
delete this;
}
@@ -44,26 +44,23 @@ void DeleteTimer::start() void DeleteTimer::stop()
{
- if (timerId)
- {
+ if (timerId) {
KillTimer(NULL, timerId);
timerId = 0;
}
}
-void CALLBACK DeleteTimer::AutoDeleteTimerProc(HWND, UINT, UINT_PTR, DWORD)
+void CALLBACK DeleteTimer::AutoDeleteTimerProc(HWND, UINT, UINT_PTR, DWORD)
{
mir_cslock lock(DBEntry::mutexDB);
- DBEntry *entry = DBEntry::getFirts();
- while (entry != NULL)
- {
- if (entry->deleteTS > 0 && entry->deleteTS < time(NULL))
- {
+ DBEntry *entry = DBEntry::getFirst();
+ while (entry != NULL) {
+ if (entry->m_deleteTS > 0 && entry->m_deleteTS < time(NULL)) {
DeleteJob *job = new DeleteJob(new DBEntry(entry), NULL);
job->start();
- }
+ }
entry = DBEntry::getNext(entry);
}
-}
\ No newline at end of file +}
|