Author: kuemmel
Date: Mon Nov  8 01:37:58 2010
New Revision: 36205
URL: http://www.lyx.org/trac/changeset/36205

Log:
fix linker errors when using Qt 4.2

Modified:
   lyx-devel/trunk/src/frontends/qt4/GuiView.cpp

Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.cpp
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiView.cpp       Sun Nov  7 23:46:41 
2010        (r36204)
+++ lyx-devel/trunk/src/frontends/qt4/GuiView.cpp       Mon Nov  8 01:37:58 
2010        (r36205)
@@ -129,6 +129,7 @@
 # include <unistd.h>
 #endif
 
+
 using namespace std;
 using namespace lyx::support;
 
@@ -2886,7 +2887,6 @@
 {
        bool (Buffer::* mem_func)(std::string const &, bool, bool) const = 
&Buffer::doExport;
        return runAndDestroy(bind(mem_func, buffer, _1, false, _2), orig, 
buffer, format, "export");
-
 }
 
 docstring GuiView::GuiViewPrivate::previewAndDestroy(Buffer const * orig, 
Buffer * buffer, string const & format)
@@ -2894,6 +2894,26 @@
        bool(Buffer::* mem_func)(std::string const &, bool) const = 
&Buffer::preview;
        return runAndDestroy(bind(mem_func, buffer, _1, _2), orig, buffer, 
format, "preview");
 }
+
+#else
+
+// not used, but the linker needs them
+
+docstring GuiView::GuiViewPrivate::compileAndDestroy(Buffer const * orig, 
Buffer * buffer, string const & format)
+{
+       return docstring();
+}
+
+docstring GuiView::GuiViewPrivate::exportAndDestroy(Buffer const * orig, 
Buffer * buffer, string const & format)
+{
+       return docstring();
+}
+
+docstring GuiView::GuiViewPrivate::previewAndDestroy(Buffer const * orig, 
Buffer * buffer, string const & format)
+{
+       return docstring();
+}
+
 #endif
 
 

Reply via email to