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/qalculateconvertunitsdialog.cpp | |
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/qalculateconvertunitsdialog.cpp')
-rw-r--r-- | src/qalculateconvertunitsdialog.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qalculateconvertunitsdialog.cpp b/src/qalculateconvertunitsdialog.cpp index 25336c4..dde95c3 100644 --- a/src/qalculateconvertunitsdialog.cpp +++ b/src/qalculateconvertunitsdialog.cpp @@ -20,6 +20,8 @@ #include "qalculateconvertunitsdialog.h" #include "qalculate_tde_utils.h" +#include <vector> +#include <string> #include <tqlabel.h> #include <klineedit.h> #include <tdelocale.h> @@ -34,7 +36,7 @@ #include <tqsplitter.h> extern tree_struct unit_cats; -extern vector<void*> ia_units; +extern std::vector<void*> ia_units; extern PrintOptions printops; extern EvaluationOptions evalops; @@ -183,7 +185,7 @@ void QalculateConvertUnitsDialog::categorySelected() { no_cat = true; } if(!b_all && !no_cat && selected_category[0] == '/') { - string str = selected_category.ascii(); + std::string str = selected_category.ascii(); str.erase(str.begin()); for(size_t i = 0; i < CALCULATOR->units.size(); i++) { if(CALCULATOR->units[i]->isActive() && !CALCULATOR->units[i]->isHidden() && CALCULATOR->units[i]->category().substr(0, selected_category.length() - 1) == str) { @@ -191,7 +193,7 @@ void QalculateConvertUnitsDialog::categorySelected() { } } } else { - string str = selected_category.ascii(); + std::string str = selected_category.ascii(); for(size_t i = 0; i < CALCULATOR->units.size(); i++) { if(CALCULATOR->units[i]->isActive() && !CALCULATOR->units[i]->isHidden() && (b_all || (no_cat && CALCULATOR->units[i]->category().empty()) || CALCULATOR->units[i]->category() == str)) { addUnitTreeItem(CALCULATOR->units[i]); |