]> git.lyx.org Git - features.git/commitdiff
fix linker errors when using Qt 4.2
authorPeter Kümmel <syntheticpp@gmx.net>
Mon, 8 Nov 2010 00:37:58 +0000 (00:37 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Mon, 8 Nov 2010 00:37:58 +0000 (00:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36205 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index eaec019d9519efe029b5e5f21a03519d486f4458..23e9b5e45126435bfbc51307e271a33e8ff3a97a 100644 (file)
 # include <unistd.h>
 #endif
 
+
 using namespace std;
 using namespace lyx::support;
 
@@ -2886,7 +2887,6 @@ docstring GuiView::GuiViewPrivate::exportAndDestroy(Buffer const * orig, Buffer
 {
        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 @@ docstring GuiView::GuiViewPrivate::previewAndDestroy(Buffer const * orig, Buffer
        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