Miniscule cleanup in Converters.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37263 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-01-19 16:58:07 +00:00
parent 57a29ac9a6
commit e8bb66b8f4

View File

@ -713,8 +713,9 @@ vector<Format const *> Converters::importableFormats()
{ {
vector<string> l = loaders(); vector<string> l = loaders();
vector<Format const *> result = getReachableTo(l[0], true); vector<Format const *> result = getReachableTo(l[0], true);
for (vector<string>::const_iterator it = l.begin() + 1; vector<string>::const_iterator it = l.begin() + 1;
it != l.end(); ++it) { vector<string>::const_iterator en = l.end();
for (; it != en; ++it) {
vector<Format const *> r = getReachableTo(*it, false); vector<Format const *> r = getReachableTo(*it, false);
result.insert(result.end(), r.begin(), r.end()); result.insert(result.end(), r.begin(), r.end());
} }
@ -726,8 +727,9 @@ vector<Format const *> Converters::exportableFormats(bool only_viewable)
{ {
vector<string> s = savers(); vector<string> s = savers();
vector<Format const *> result = getReachable(s[0], only_viewable, true); vector<Format const *> result = getReachable(s[0], only_viewable, true);
for (vector<string>::const_iterator it = s.begin() + 1; vector<string>::const_iterator it = s.begin() + 1;
it != s.end(); ++it) { vector<string>::const_iterator en = s.end();
for (; it != en; ++it) {
vector<Format const *> r = vector<Format const *> r =
getReachable(*it, only_viewable, false); getReachable(*it, only_viewable, false);
result.insert(result.end(), r.begin(), r.end()); result.insert(result.end(), r.begin(), r.end());