summaryrefslogtreecommitdiffstats
path: root/src/qalculateeditunitdialog.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/qalculateeditunitdialog.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/qalculateeditunitdialog.cpp')
-rw-r--r--src/qalculateeditunitdialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qalculateeditunitdialog.cpp b/src/qalculateeditunitdialog.cpp
index b678b10..1c3d361 100644
--- a/src/qalculateeditunitdialog.cpp
+++ b/src/qalculateeditunitdialog.cpp
@@ -21,6 +21,7 @@
#include "qalculate_tde_utils.h"
#include "qalculateeditnamesdialog.h"
+#include <string>
#include <tqgrid.h>
#include <klineedit.h>
#include <tqpushbutton.h>
@@ -138,7 +139,7 @@ void QalculateEditUnitDialog::slotHelp() {
}
void QalculateEditUnitDialog::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