1
Fork 0
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:
Andreas Kling 2019-04-01 22:03:32 +02:00
parent ee4d7c18c8
commit c9b0d87927
4 changed files with 17 additions and 3 deletions

View file

@ -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 };
};