mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:27:45 +00:00
LibGUI: Fix broken doubleclick detection due to uninitialized GElapsedTimer.
This commit is contained in:
parent
ee4d7c18c8
commit
c9b0d87927
4 changed files with 17 additions and 3 deletions
|
@ -6,9 +6,11 @@ class GElapsedTimer {
|
|||
public:
|
||||
GElapsedTimer() { }
|
||||
|
||||
bool is_valid() const { return m_valid; }
|
||||
void start();
|
||||
int elapsed() const;
|
||||
|
||||
private:
|
||||
bool m_valid { false };
|
||||
struct timeval m_start_time { 0, 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue