diff options
author | aneejit1 <aneejit1@gmail.com> | 2020-11-11 00:22:16 +0000 |
---|---|---|
committer | aneejit1 <aneejit1@gmail.com> | 2020-11-13 15:13:37 +0000 |
commit | 208f77024e5231bffa800964b1123cbde8fa3f29 (patch) | |
tree | ec19896681c321fd70d52befdcea62559597eeb4 /src/qalculate_tde_utils.h | |
parent | 7cbf6dffbb0ec5521db6136b39d35fd9e98663ee (diff) | |
download | qalculate-tde-208f77024e5231bffa800964b1123cbde8fa3f29.tar.gz qalculate-tde-208f77024e5231bffa800964b1123cbde8fa3f29.zip |
Fix undeclared declarations of string/vector/list; prefix declarations with 'std::'
Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'src/qalculate_tde_utils.h')
-rw-r--r-- | src/qalculate_tde_utils.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/qalculate_tde_utils.h b/src/qalculate_tde_utils.h index 05df313..e51d0c1 100644 --- a/src/qalculate_tde_utils.h +++ b/src/qalculate_tde_utils.h @@ -21,6 +21,9 @@ #ifndef QALCULATE_TDE_UTILS_H #define QALCULATE_TDE_UTILS_H +#include <vector> +#include <string> +#include <list> #include <libqalculate/qalculate.h> #undef insertItem #undef addItem @@ -34,15 +37,15 @@ class TQLabel; class TQLineEdit; struct tree_struct { - string item; - list<tree_struct> items; - list<tree_struct>::iterator it; - list<tree_struct>::reverse_iterator rit; - vector<void*> objects; + std::string item; + std::list<tree_struct> items; + std::list<tree_struct>::iterator it; + std::list<tree_struct>::reverse_iterator rit; + std::vector<void*> objects; tree_struct *parent; void sort() { items.sort(); - for(list<tree_struct>::iterator it = items.begin(); it != items.end(); ++it) { + for(std::list<tree_struct>::iterator it = items.begin(); it != items.end(); ++it) { it->sort(); } } |