mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-25 17:44:59 +00:00
Make ensureBufferClean a private member of LyXFunc. This avoids the bv->owner()->dispatch() redirection.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15032 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2b0a849d36
commit
87adf196c1
@ -651,9 +651,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
bool LyXFunc::ensureBufferClean(BufferView * bv)
|
||||||
|
|
||||||
bool ensureBufferClean(BufferView * bv)
|
|
||||||
{
|
{
|
||||||
Buffer & buf = *bv->buffer();
|
Buffer & buf = *bv->buffer();
|
||||||
if (buf.isClean())
|
if (buf.isClean())
|
||||||
@ -668,12 +666,14 @@ bool ensureBufferClean(BufferView * bv)
|
|||||||
_("&Cancel"));
|
_("&Cancel"));
|
||||||
|
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
bv->owner()->dispatch(FuncRequest(LFUN_BUFFER_WRITE));
|
dispatch(FuncRequest(LFUN_BUFFER_WRITE));
|
||||||
|
|
||||||
return buf.isClean();
|
return buf.isClean();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
void showPrintError(string const & name)
|
void showPrintError(string const & name)
|
||||||
{
|
{
|
||||||
docstring str = bformat(_("Could not print the document %1$s.\n"
|
docstring str = bformat(_("Could not print the document %1$s.\n"
|
||||||
|
@ -108,6 +108,8 @@ private:
|
|||||||
void doImport(std::string const &);
|
void doImport(std::string const &);
|
||||||
///
|
///
|
||||||
void closeBuffer();
|
void closeBuffer();
|
||||||
|
///
|
||||||
|
bool ensureBufferClean(BufferView * bv);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user