]> git.lyx.org Git - lyx.git/blobdiff - src/support/Timeout.cpp
Let paragraph::requestSpellcheck() consider contained insets
[lyx.git] / src / support / Timeout.cpp
index 6a628fd931d244bf1840284f78b8417d492a4e25..e42fabc9f110d660c1d8a4b5fc03ad91244312c5 100644 (file)
@@ -10,8 +10,9 @@
 
 #include <config.h>
 
-#include "support/lassert.h"
 #include "support/Timeout.h"
+
+#include "support/lassert.h"
 #include "support/debug.h"
 
 #include <QObject>
@@ -46,12 +47,12 @@ public:
 
 protected:
        ///
-       void timerEvent(QTimerEvent *) { owner_.emit(); }
+       void timerEvent(QTimerEvent *) override { owner_.emit(); }
 
 private:
        ///
        Timeout & owner_;
-       /// timout id
+       /// timeout id
        int timeout_id;
 };
 
@@ -158,6 +159,12 @@ Timer::Timer() : d(new Private)
 }
 
 
+Timer::~Timer()
+{
+       delete d;
+}
+
+
 void Timer::restart()
 {
        time(&d->start_time);