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/preferences.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/preferences.cpp')
-rw-r--r-- | src/preferences.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/preferences.cpp b/src/preferences.cpp index f4f4011..e75ee66 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -30,6 +30,8 @@ #include <unistd.h> #include <dirent.h> #include <stdio.h> +#include <vector> +#include <string> #include <tdelocale.h> #include <tqstringlist.h> #include <ktextbrowser.h> @@ -71,9 +73,9 @@ bool canplot; TQString initial_history; -extern vector<MathFunction*> recent_functions; -extern vector<Variable*> recent_variables; -extern vector<Unit*> recent_units; +extern std::vector<MathFunction*> recent_functions; +extern std::vector<Variable*> recent_variables; +extern std::vector<Unit*> recent_units; TQValueVector<TQString> recent_functions_pre; TQValueVector<TQString> recent_variables_pre; TQValueVector<TQString> recent_units_pre; @@ -84,7 +86,7 @@ TQStringList expression_history; bool show_keypad, show_history, show_stack; -vector<mode_struct> modes; +std::vector<mode_struct> modes; TQValueVector<TQString> inhistory; TQValueVector<int> inhistory_type; @@ -232,7 +234,7 @@ void load_preferences() { load_global_defs = true; fetch_exchange_rates_at_startup = false; first_time = false; - string filename = getLocalDir(); + std::string filename = getLocalDir(); DIR *dir = opendir(filename.c_str()); if(!dir) { first_qalculate_run = true; @@ -661,7 +663,7 @@ void load_preferences() { void save_preferences(bool mode) { FILE *file = NULL; - string filename = getLocalDir(); + std::string filename = getLocalDir(); mkdir(filename.c_str(), S_IRWXU); filename += "qalculate-tde.cfg"; file = fopen(filename.c_str(), "w+"); |