summaryrefslogtreecommitdiffstats
path: root/src/qalculateeditvariabledialog.cpp
diff options
context:
space:
mode:
authoraneejit1 <[email protected]>2020-11-11 00:22:16 +0000
committerMichele Calgaro <[email protected]>2020-11-14 13:31:00 +0800
commitacc3790c3c38df02937fdfea6b97de2c622b3c0d (patch)
tree298b95fab65d0ed107048b1d0a6940061de28e1e /src/qalculateeditvariabledialog.cpp
parentec5a7752bc558117da4ae0c181109cf67d888a51 (diff)
downloadqalculate-tde-acc3790c3c38df02937fdfea6b97de2c622b3c0d.tar.gz
qalculate-tde-acc3790c3c38df02937fdfea6b97de2c622b3c0d.zip
Fix undeclared declarations of string/vector/list; prefix declarations with 'std::'
Signed-off-by: aneejit1 <[email protected]> (cherry picked from commit 208f77024e5231bffa800964b1123cbde8fa3f29)
Diffstat (limited to 'src/qalculateeditvariabledialog.cpp')
-rw-r--r--src/qalculateeditvariabledialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qalculateeditvariabledialog.cpp b/src/qalculateeditvariabledialog.cpp
index aab9af3..8475cdd 100644
--- a/src/qalculateeditvariabledialog.cpp
+++ b/src/qalculateeditvariabledialog.cpp
@@ -21,6 +21,7 @@
#include "qalculate_tde_utils.h"
#include "qalculateeditnamesdialog.h"
+#include <string>
#include <tqgrid.h>
#include <klineedit.h>
#include <tqpushbutton.h>
@@ -94,7 +95,7 @@ void QalculateEditVariableDialog::slotHelp() {
}
void QalculateEditVariableDialog::slotOk() {
- string str = nameEdit->text().ascii();
+ std::string str = nameEdit->text().ascii();
remove_blank_ends(str);
if(str.empty() && (!names_edit_dialog || names_edit_dialog->isEmpty())) {
//no name -- open dialog again
@@ -102,7 +103,7 @@ void QalculateEditVariableDialog::slotOk() {
KMessageBox::error(this, i18n("Empty name field"));
return;
}
- string str2 = valueEdit->text().ascii();
+ std::string str2 = valueEdit->text().ascii();
remove_blank_ends(str2);
if(!(init_value && force_init_value) && str2.empty()) {
//no value -- open dialog again