mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-05 08:57:35 +00:00
Simplify code a bit. Should be equivalent, unless backs is empty!
This commit is contained in:
parent
747afa36cd
commit
3c094c739b
@ -2653,12 +2653,10 @@ FormatList const & BufferParams::exportableFormats(bool only_viewable) const
|
|||||||
excludes.insert("xetex");
|
excludes.insert("xetex");
|
||||||
}
|
}
|
||||||
|
|
||||||
FormatList result =
|
FormatList result;
|
||||||
theConverters().getReachable(backs[0], only_viewable, true, excludes);
|
for (auto const & b : backs) {
|
||||||
vector<string>::const_iterator it = backs.begin() + 1;
|
FormatList r =
|
||||||
for (; it != backs.end(); ++it) {
|
theConverters().getReachable(b, only_viewable, false, excludes);
|
||||||
FormatList r = theConverters().getReachable(*it, only_viewable,
|
|
||||||
false, excludes);
|
|
||||||
result.insert(result.end(), r.begin(), r.end());
|
result.insert(result.end(), r.begin(), r.end());
|
||||||
}
|
}
|
||||||
sort(result.begin(), result.end(), Format::formatSorter);
|
sort(result.begin(), result.end(), Format::formatSorter);
|
||||||
|
Loading…
Reference in New Issue
Block a user