diff options
| author | aneejit1 <aneejit1@gmail.com> | 2020-11-11 00:22:16 +0000 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-11-14 13:31:00 +0800 |
| commit | acc3790c3c38df02937fdfea6b97de2c622b3c0d (patch) | |
| tree | 298b95fab65d0ed107048b1d0a6940061de28e1e /src/main.cpp | |
| parent | ec5a7752bc558117da4ae0c181109cf67d888a51 (diff) | |
| download | qalculate-tde-acc3790c.tar.gz qalculate-tde-acc3790c.zip | |
Fix undeclared declarations of string/vector/list; prefix declarations with 'std::'
Signed-off-by: aneejit1 <aneejit1@gmail.com>
(cherry picked from commit 208f77024e5231bffa800964b1123cbde8fa3f29)
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"); |
