diff options
author | aneejit1 <[email protected]> | 2020-11-11 00:22:16 +0000 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-11-14 13:31:00 +0800 |
commit | acc3790c3c38df02937fdfea6b97de2c622b3c0d (patch) | |
tree | 298b95fab65d0ed107048b1d0a6940061de28e1e /src/qalculate_tde_utils.h | |
parent | ec5a7752bc558117da4ae0c181109cf67d888a51 (diff) | |
download | qalculate-tde-acc3790c3c38df02937fdfea6b97de2c622b3c0d.tar.gz qalculate-tde-acc3790c3c38df02937fdfea6b97de2c622b3c0d.zip |
Fix undeclared declarations of string/vector/list; prefix declarations with 'std::'
Signed-off-by: aneejit1 <[email protected]>
(cherry picked from commit 208f77024e5231bffa800964b1123cbde8fa3f29)
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(); } } |