summaryrefslogtreecommitdiffstats
path: root/src/qalculateconvertnumberbasesdialog.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/qalculateconvertnumberbasesdialog.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/qalculateconvertnumberbasesdialog.cpp')
-rw-r--r--src/qalculateconvertnumberbasesdialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/qalculateconvertnumberbasesdialog.cpp b/src/qalculateconvertnumberbasesdialog.cpp
index 8ff4ba9..88db1a1 100644
--- a/src/qalculateconvertnumberbasesdialog.cpp
+++ b/src/qalculateconvertnumberbasesdialog.cpp
@@ -19,6 +19,7 @@
***************************************************************************/
#include "qalculateconvertnumberbasesdialog.h"
#include "qalculate_tde_utils.h"
+#include <string>
#include <tdelocale.h>
#include <tqgrid.h>
#include <tqlabel.h>
@@ -59,7 +60,7 @@ QalculateConvertNumberBasesDialog::QalculateConvertNumberBasesDialog(TQWidget *p
QalculateConvertNumberBasesDialog::~QalculateConvertNumberBasesDialog() {}
void QalculateConvertNumberBasesDialog::setDecimalValue(const TQString &qstr) {
- string str = qstr.ascii();
+ std::string str = qstr.ascii();
remove_blank_ends(str);
if(str.empty()) return;
if(is_in(OPERATORS EXP, str[str.length() - 1])) return;
@@ -69,7 +70,7 @@ void QalculateConvertNumberBasesDialog::setDecimalValue(const TQString &qstr) {
updateEntries(&value, 10);
}
void QalculateConvertNumberBasesDialog::setBinaryValue(const TQString &qstr) {
- string str = qstr.ascii();
+ std::string str = qstr.ascii();
remove_blank_ends(str);
if(str.empty()) return;
if(is_in(OPERATORS EXP, str[str.length() - 1])) return;
@@ -80,7 +81,7 @@ void QalculateConvertNumberBasesDialog::setBinaryValue(const TQString &qstr) {
updateEntries(&value, 2);
}
void QalculateConvertNumberBasesDialog::setOctalValue(const TQString &qstr) {
- string str = qstr.ascii();
+ std::string str = qstr.ascii();
remove_blank_ends(str);
if(str.empty()) return;
if(is_in(OPERATORS EXP, str[str.length() - 1])) return;
@@ -91,7 +92,7 @@ void QalculateConvertNumberBasesDialog::setOctalValue(const TQString &qstr) {
updateEntries(&value, 8);
}
void QalculateConvertNumberBasesDialog::setHexadecimalValue(const TQString &qstr) {
- string str = qstr.ascii();
+ std::string str = qstr.ascii();
remove_blank_ends(str);
if(str.empty()) return;
if(is_in(OPERATORS EXP, str[str.length() - 1])) return;