mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-21 07:12:10 +00:00
Speedup updateMacroInstances. This has some effect on document loading time:
it was a significant part of this time git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32435 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b2dd36916b
commit
52061b8313
@ -2657,14 +2657,11 @@ void Buffer::updateMacroInstances() const
|
||||
LYXERR(Debug::MACROS, "updateMacroInstances for "
|
||||
<< d->filename.onlyFileName());
|
||||
DocIterator it = doc_iterator_begin(this);
|
||||
DocIterator end = doc_iterator_end(this);
|
||||
for (; it != end; it.forwardPos()) {
|
||||
it.forwardInset();
|
||||
DocIterator const end = doc_iterator_end(this);
|
||||
for (; it != end; it.forwardInset()) {
|
||||
// look for MathData cells in InsetMathNest insets
|
||||
Inset * inset = it.nextInset();
|
||||
if (!inset)
|
||||
continue;
|
||||
|
||||
InsetMath * minset = inset->asInsetMath();
|
||||
InsetMath * minset = it.nextInset()->asInsetMath();
|
||||
if (!minset)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user