Skip to content

Commit

Permalink
Use list instead of forward_list to avoid c++11 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna K committed Jul 26, 2016
1 parent 90825b2 commit 0dfdcb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qalc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <forward_list>
#include <list>
#include <glib.h>
#ifdef HAVE_LIBREADLINE
#include <readline/readline.h>
Expand Down Expand Up @@ -839,7 +839,7 @@ void list_defs(bool in_interactive, char list_type = 0) {
puts("");
} else {
int max_l = 0;
forward_list<string> name_list;
list<string> name_list;
int i_end = 0;
if(list_type == 'f') i_end = CALCULATOR->functions.size();
if(list_type == 'v') i_end = CALCULATOR->variables.size();
Expand Down Expand Up @@ -868,8 +868,8 @@ void list_defs(bool in_interactive, char list_type = 0) {
}
}
name_list.sort();
forward_list<string>::iterator it = name_list.begin();
forward_list<string>::iterator it_e = name_list.end();
list<string>::iterator it = name_list.begin();
list<string>::iterator it_e = name_list.end();
int c = 0;
int max_tabs = (max_l / 8) + 1;
int max_c = cols / (max_tabs * 8);
Expand Down

0 comments on commit 0dfdcb9

Please sign in to comment.