void sort(const Options &o)
{
functions_sorted = functions;
- if (o.enable_sort)
+ if (o.enable_sort) {
qSort(functions_sorted.begin(), functions_sorted.end());
+ }
}
void check(ostream &o)
{
// list.sort();
// QStringList::iterator end = unique(list.begin(), list.end());
list.removeDuplicates();
+ list.sort();
return list;
}
o << ".RS\n"; // move left margin to the right
o << ".nf\n"; // no filling of output lines
o << "\\fB\n"; // font to bold face
- size_t w = get_type_width(h.functions);
- foreach (const Function &f, h.functions) {
+ size_t w = get_type_width(h.functions_sorted);
+ foreach (const Function &f, h.functions_sorted) {
o << fill_right(f.type, w) << f.name << "(";
QVectorIterator<Parameter> i(f.parameters);
if (i.hasNext())