]> git.lyx.org Git - lyx.git/commitdiff
Compilation fix for windows
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 16 Jul 2015 07:45:45 +0000 (09:45 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 16 Jul 2015 07:48:57 +0000 (09:48 +0200)
Since commit 7ac70092, lyx::dispatch returns a DispatchResult const &,
which is ignored in the cases below. Nevertheless, the windows
compiler complains that it does not know this type. Gcc and clang can
deal with it without problem.

src/frontends/qt4/Action.cpp
src/frontends/qt4/InsertTableWidget.cpp

index 115111f27fc1db944a04bce0ef47255be37c4698..71e41a44318ac24c86cb3ba500a85a29653b539e 100644 (file)
 
 #include "Action.h"
 
+// DispatchResult.h is needed by the windows compiler because lyx::dispatch
+// returns a DispatchResult const reference. Gcc does not complain. Weird...
+#include "DispatchResult.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
 #include "LyX.h"
+
 #include "qt_helpers.h"
 
 #include "support/debug.h"
index 889e056abc7ec66b6f1b6871f28c6cf4ba9ac94a..813ccdb17a62be445930f970fc69e99c8d987fc5 100644 (file)
@@ -16,6 +16,9 @@
 #include "GuiView.h"
 #include "qt_helpers.h"
 
+// DispatchResult.h is needed by the windows compiler because lyx::dispatch
+// returns a DispatchResult const reference. Gcc does not complain. Weird...
+#include "DispatchResult.h"
 #include "FuncStatus.h"
 #include "FuncRequest.h"
 #include "LyX.h"