mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
A few more small optimizations noted along the way.
(cherry picked from commit c1e3d795f6
)
Conflicts:
src/tex2lyx/text.cpp
This commit is contained in:
parent
3a09afa985
commit
7740226c9f
@ -1513,7 +1513,9 @@ void parse_environment(Parser & p, ostream & os, bool outer,
|
||||
if (!preamble.titleLayoutFound())
|
||||
preamble.titleLayoutFound(newlayout->intitle);
|
||||
set<string> const & req = newlayout->requires();
|
||||
for (set<string>::const_iterator it = req.begin(); it != req.end(); ++it)
|
||||
set<string>::const_iterator it = req.begin();
|
||||
set<string>::const_iterator en = req.end();
|
||||
for (; it != en; ++it)
|
||||
preamble.registerAutomaticallyLoadedPackage(*it);
|
||||
}
|
||||
|
||||
@ -2428,8 +2430,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
if (!preamble.titleLayoutFound())
|
||||
preamble.titleLayoutFound(newlayout->intitle);
|
||||
set<string> const & req = newlayout->requires();
|
||||
for (set<string>::const_iterator it = req.begin();
|
||||
it != req.end(); ++it)
|
||||
set<string>::const_iterator it = req.begin();
|
||||
set<string>::const_iterator en = req.end();
|
||||
for (; it != en; ++it)
|
||||
preamble.registerAutomaticallyLoadedPackage(*it);
|
||||
} else
|
||||
handle_ert(os,
|
||||
|
Loading…
Reference in New Issue
Block a user