From 208f77024e5231bffa800964b1123cbde8fa3f29 Mon Sep 17 00:00:00 2001 From: aneejit1 Date: Wed, 11 Nov 2020 00:22:16 +0000 Subject: Fix undeclared declarations of string/vector/list; prefix declarations with 'std::' Signed-off-by: aneejit1 --- src/preferences.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/preferences.cpp') 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 #include #include +#include +#include #include #include #include @@ -71,9 +73,9 @@ bool canplot; TQString initial_history; -extern vector recent_functions; -extern vector recent_variables; -extern vector recent_units; +extern std::vector recent_functions; +extern std::vector recent_variables; +extern std::vector recent_units; TQValueVector recent_functions_pre; TQValueVector recent_variables_pre; TQValueVector recent_units_pre; @@ -84,7 +86,7 @@ TQStringList expression_history; bool show_keypad, show_history, show_stack; -vector modes; +std::vector modes; TQValueVector inhistory; TQValueVector 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+"); -- cgit v1.2.1