diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-17 19:25:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-17 19:25:36 +0300 |
commit | 45e8cd4d903d4ea823f0ab4ca2e7afe27ddc514b (patch) | |
tree | 1b2e1c275f87170c029c6f0181a54984c435cc4a /plugins/FTPFileYM/src/deletetimer.h | |
parent | 47eae603adab188624f17dab14318c1b1995f0ab (diff) |
FtpFile:
- fixes #1662 (FTPFile: Default account's names looks weird)
- code cleaning
- version bump
Diffstat (limited to 'plugins/FTPFileYM/src/deletetimer.h')
-rw-r--r-- | plugins/FTPFileYM/src/deletetimer.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/plugins/FTPFileYM/src/deletetimer.h b/plugins/FTPFileYM/src/deletetimer.h index 1daec28b3b..6909cd981e 100644 --- a/plugins/FTPFileYM/src/deletetimer.h +++ b/plugins/FTPFileYM/src/deletetimer.h @@ -24,24 +24,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. class DeleteTimer
{
private:
- static DeleteTimer *instance;
- UINT timerId;
-
- DeleteTimer() { };
- ~DeleteTimer() { instance = nullptr; };
+ UINT timerId = 0;
static void CALLBACK AutoDeleteTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
public:
- static DeleteTimer &getInstance()
- {
- if (!instance)
- instance = new DeleteTimer();
- return *instance;
- };
-
void init();
void deinit();
void start();
void stop();
-};
\ No newline at end of file +};
+
+extern DeleteTimer deleteTimer;
|