mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Small refactorings
This commit is contained in:
parent
a7018252b7
commit
1b508fff03
@ -1127,7 +1127,7 @@ void Text::charInserted(Cursor & cur)
|
||||
&& par.isWordSeparator(cur.pos() - 1)) {
|
||||
// get the word in front of cursor
|
||||
LBUFERR(this == cur.text());
|
||||
cur.paragraph().updateWords();
|
||||
par.updateWords();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -540,7 +540,8 @@ void PreviewLoader::Impl::add(string const & latex_snippet)
|
||||
|
||||
namespace {
|
||||
|
||||
std::function<void (InProgressProcess &)> EraseSnippet(string const & s) {
|
||||
std::function<void (InProgressProcess &)> EraseSnippet(string const & s)
|
||||
{
|
||||
return [&s](InProgressProcess & process) {
|
||||
BitmapFile & snippets = process.second.snippets;
|
||||
BitmapFile::iterator it = snippets.begin();
|
||||
@ -550,7 +551,7 @@ std::function<void (InProgressProcess &)> EraseSnippet(string const & s) {
|
||||
if (it != end)
|
||||
snippets.erase(it, it+1);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
@ -958,7 +958,7 @@ string DocFileName::outputFileName(string const & path) const
|
||||
string DocFileName::mangledFileName(string const & dir) const
|
||||
{
|
||||
return mangledFileName(dir, true, false);
|
||||
};
|
||||
}
|
||||
|
||||
string DocFileName::mangledFileName(string const & dir, bool use_counter, bool encrypt_path) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user