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/qalculateexpressionedit.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/qalculateexpressionedit.cpp')
-rw-r--r-- | src/qalculateexpressionedit.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/qalculateexpressionedit.cpp b/src/qalculateexpressionedit.cpp index 31ccecf..3eff804 100644 --- a/src/qalculateexpressionedit.cpp +++ b/src/qalculateexpressionedit.cpp @@ -21,6 +21,8 @@ #include "qalculate_tde_utils.h" #include "kqalculate.h" +#include <vector> +#include <string> #include <tdeversion.h> #include <kcursor.h> #include <tqstyle.h> @@ -35,14 +37,14 @@ #include <tdelocale.h> #include <tqsimplerichtext.h> -extern vector<mode_struct> modes; +extern std::vector<mode_struct> modes; extern KQalculate *mainWin; extern PrintOptions printops; extern EvaluationOptions evalops; extern bool rpn_mode, rpn_keypad_only; extern tree_struct function_cats, unit_cats, variable_cats; -extern vector<void*> ia_units, ia_variables, ia_functions; +extern std::vector<void*> ia_units, ia_variables, ia_functions; class QalculateExpressionEditListBoxItem : public TQListBoxItem { @@ -726,11 +728,11 @@ void set_title(ExpressionItem *item, TQString &title) { } } -string sub_suffix(const ExpressionName *ename) { +std::string sub_suffix(const ExpressionName *ename) { size_t i = ename->name.rfind('_'); - bool b = i == string::npos || i == ename->name.length() - 1 || i == 0; + bool b = i == std::string::npos || i == ename->name.length() - 1 || i == 0; size_t i2 = 1; - string str; + std::string str; if(b) { if(is_in(NUMBERS, ename->name[ename->name.length() - 1])) { while(ename->name.length() > i2 + 1 && is_in(NUMBERS, ename->name[ename->name.length() - 1 - i2])) { @@ -749,7 +751,7 @@ string sub_suffix(const ExpressionName *ename) { } TQString makeListName(ExpressionItem *item, TQWidget *w, int *italic_index, bool *rich_text) { - string str; + std::string str; const ExpressionName *ename, *ename_r; *rich_text = false; bool b = false; |