]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/InGuiThread.h
Menus: Factor Toc code
[lyx.git] / src / frontends / qt4 / InGuiThread.h
index 0609cb085e33ec068445eb6b11c4274d2d8dc602..86c4afee502b6ebae910eb25a60780996a89d45c 100644 (file)
 #include "support/bind.h"
 #include "support/functional.h"
 
-#if QT_VERSION < 0x040400
-#define Q_EMIT
-#endif
-
 namespace lyx {
 namespace frontend {
 
@@ -56,7 +52,8 @@ class InGuiThread : private IntoGuiThreadMover
 {
 public:
 
-       InGuiThread() {}
+       // please coverity by explicitly initalizing this variable.
+       InGuiThread() : return_value_(R()) {}
 
        template<class F>
        R call(F f)