Skip to content

Commit 271f860

Browse files
committed
Update idletimer.cpp
1 parent 377fcee commit 271f860

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cpp/idletimer.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ class IdleTimer : public QObject
1212
public:
1313

1414
static IdleTimer *singleton() {
15-
//static IdleTimer singleton;
1615
if (_singleton == nullptr)
17-
_singleton = new IdleTimer;
18-
return _singleton;
16+
_singleton = new IdleTimer;
17+
return _singleton;
1918
}
2019

2120
void init(int32_t *guiIdleRun)
@@ -40,7 +39,7 @@ class IdleTimer : public QObject
4039
}
4140
}
4241

43-
static IdleTimer* _singleton;
42+
static IdleTimer* _singleton;
4443

4544
private:
4645

0 commit comments

Comments
 (0)