diff options
author | aneejit1 <[email protected]> | 2020-11-11 00:22:16 +0000 |
---|---|---|
committer | aneejit1 <[email protected]> | 2020-11-13 15:13:37 +0000 |
commit | 208f77024e5231bffa800964b1123cbde8fa3f29 (patch) | |
tree | ec19896681c321fd70d52befdcea62559597eeb4 /src/main.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 <[email protected]>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index c9c9ee6..b56623f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,6 +24,7 @@ #include "kqalculate.h" #include "preferences.h" +#include <string> #include <twin.h> #include <kuniqueapplication.h> #include <tdeaboutdata.h> @@ -152,7 +153,7 @@ void start_qalculate() { CALCULATOR->loadExchangeRates(); - string ans_str = i18n("ans").ascii(); + std::string ans_str = i18n("ans").ascii(); vans[0] = (KnownVariable*) CALCULATOR->addVariable(new KnownVariable(i18n("Temporary").ascii(), ans_str, m_undefined, i18n("Last Answer").ascii(), false)); vans[0]->addName(i18n("answer").ascii()); vans[0]->addName(ans_str + "1"); |