mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-14 12:25:11 +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)) {
|
&& par.isWordSeparator(cur.pos() - 1)) {
|
||||||
// get the word in front of cursor
|
// get the word in front of cursor
|
||||||
LBUFERR(this == cur.text());
|
LBUFERR(this == cur.text());
|
||||||
cur.paragraph().updateWords();
|
par.updateWords();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -540,7 +540,8 @@ void PreviewLoader::Impl::add(string const & latex_snippet)
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
std::function<void (InProgressProcess &)> EraseSnippet(string const & s) {
|
std::function<void (InProgressProcess &)> EraseSnippet(string const & s)
|
||||||
|
{
|
||||||
return [&s](InProgressProcess & process) {
|
return [&s](InProgressProcess & process) {
|
||||||
BitmapFile & snippets = process.second.snippets;
|
BitmapFile & snippets = process.second.snippets;
|
||||||
BitmapFile::iterator it = snippets.begin();
|
BitmapFile::iterator it = snippets.begin();
|
||||||
@ -550,7 +551,7 @@ std::function<void (InProgressProcess &)> EraseSnippet(string const & s) {
|
|||||||
if (it != end)
|
if (it != end)
|
||||||
snippets.erase(it, it+1);
|
snippets.erase(it, it+1);
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
@ -958,7 +958,7 @@ string DocFileName::outputFileName(string const & path) const
|
|||||||
string DocFileName::mangledFileName(string const & dir) const
|
string DocFileName::mangledFileName(string const & dir) const
|
||||||
{
|
{
|
||||||
return mangledFileName(dir, true, false);
|
return mangledFileName(dir, true, false);
|
||||||
};
|
}
|
||||||
|
|
||||||
string DocFileName::mangledFileName(string const & dir, bool use_counter, bool encrypt_path) const
|
string DocFileName::mangledFileName(string const & dir, bool use_counter, bool encrypt_path) const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user