mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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
This commit is contained in:
parent
f6246e974f
commit
a32c12834b
@ -398,7 +398,7 @@ public:
|
||||
static docstring autosaveAndDestroy(Buffer const * orig, Buffer * buffer);
|
||||
|
||||
template<class T>
|
||||
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<class T>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user