summaryrefslogtreecommitdiffstats
path: root/src/qalculateeditmatrixvectordialog.cpp
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2020-11-11 00:22:16 +0000
committeraneejit1 <aneejit1@gmail.com>2020-11-13 15:13:37 +0000
commit208f77024e5231bffa800964b1123cbde8fa3f29 (patch)
treeec19896681c321fd70d52befdcea62559597eeb4 /src/qalculateeditmatrixvectordialog.cpp
parent7cbf6dffbb0ec5521db6136b39d35fd9e98663ee (diff)
downloadqalculate-tde-208f77024e5231bffa800964b1123cbde8fa3f29.tar.gz
qalculate-tde-208f77024e5231bffa800964b1123cbde8fa3f29.zip
Fix undeclared declarations of string/vector/list; prefix declarations with 'std::'
Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'src/qalculateeditmatrixvectordialog.cpp')
-rw-r--r--src/qalculateeditmatrixvectordialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qalculateeditmatrixvectordialog.cpp b/src/qalculateeditmatrixvectordialog.cpp
index 578f06b..1a65a48 100644
--- a/src/qalculateeditmatrixvectordialog.cpp
+++ b/src/qalculateeditmatrixvectordialog.cpp
@@ -21,6 +21,7 @@
#include "qalculate_tde_utils.h"
#include "qalculateeditnamesdialog.h"
+#include <string>
#include <tqgrid.h>
#include <klineedit.h>
#include <tqpushbutton.h>
@@ -177,7 +178,7 @@ KnownVariable *QalculateEditMatrixVectorDialog::newMatrix(TQString category) {
}
void QalculateEditMatrixVectorDialog::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
@@ -202,7 +203,7 @@ void QalculateEditMatrixVectorDialog::slotOk() {
int c = columnsBox->value();
if(vectorButton->isChecked()) {
mstruct_new.clearVector();
- string str2;
+ std::string str2;
for(int index_r = 0; index_r < r; index_r++) {
for(int index_c = 0; index_c < c; index_c++) {
if(!elementsTable->text(index_r, index_c).isEmpty()) {