From: Vincent van Ravesteijn Date: Sun, 30 Oct 2011 08:53:22 +0000 (+0000) Subject: Fix the warning about the unused msg parameter X-Git-Tag: 2.1.0beta1~2430 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a32c12834b57f178bae4c63f64ace061fb1305f2;p=features.git Fix the warning about the unused msg parameter git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40086 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index b16ca98136..6a201daa16 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -398,7 +398,7 @@ public: static docstring autosaveAndDestroy(Buffer const * orig, Buffer * buffer); template - static Buffer::ExportStatus runAndDestroy(const T& func, Buffer const * orig, Buffer * buffer, string const & format, string const & msg); + static Buffer::ExportStatus runAndDestroy(const T& func, Buffer const * orig, Buffer * buffer, string const & format); // TODO syncFunc/previewFunc: use bind bool asyncBufferProcessing(string const & argument, @@ -3045,7 +3045,7 @@ bool GuiView::goToFileRow(string const & argument) #if (QT_VERSION >= 0x040400) template -Buffer::ExportStatus GuiView::GuiViewPrivate::runAndDestroy(const T& func, Buffer const * orig, Buffer * buffer, string const & format, string const & msg) +Buffer::ExportStatus GuiView::GuiViewPrivate::runAndDestroy(const T& func, Buffer const * orig, Buffer * buffer, string const & format) { Buffer::ExportStatus const status = func(format); @@ -3061,21 +3061,21 @@ Buffer::ExportStatus GuiView::GuiViewPrivate::runAndDestroy(const T& func, Buffe Buffer::ExportStatus GuiView::GuiViewPrivate::compileAndDestroy(Buffer const * orig, Buffer * buffer, string const & format) { Buffer::ExportStatus (Buffer::* mem_func)(std::string const &, bool) const = &Buffer::doExport; - return runAndDestroy(bind(mem_func, buffer, _1, true), orig, buffer, format, "export"); + return runAndDestroy(bind(mem_func, buffer, _1, true), orig, buffer, format); } Buffer::ExportStatus GuiView::GuiViewPrivate::exportAndDestroy(Buffer const * orig, Buffer * buffer, string const & format) { Buffer::ExportStatus (Buffer::* mem_func)(std::string const &, bool) const = &Buffer::doExport; - return runAndDestroy(bind(mem_func, buffer, _1, false), orig, buffer, format, "export"); + return runAndDestroy(bind(mem_func, buffer, _1, false), orig, buffer, format); } Buffer::ExportStatus GuiView::GuiViewPrivate::previewAndDestroy(Buffer const * orig, Buffer * buffer, string const & format) { Buffer::ExportStatus (Buffer::* mem_func)(std::string const &) const = &Buffer::preview; - return runAndDestroy(bind(mem_func, buffer, _1), orig, buffer, format, "preview"); + return runAndDestroy(bind(mem_func, buffer, _1), orig, buffer, format); } #else