diff options
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]); |