summaryrefslogtreecommitdiffstats
path: root/src/knutmainwindow.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-10-16 01:30:23 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-10-16 01:34:23 +0200
commite2ca425f12e15b852b7e75f61d0d5b6923417725 (patch)
treefd5b89784c8c6a618b149e33283b660819b29e1a /src/knutmainwindow.cpp
parent487b3ad8964838a72f01b18a364dd9b7036b237e (diff)
downloadknutclient-e2ca425f12e15b852b7e75f61d0d5b6923417725.tar.gz
knutclient-e2ca425f12e15b852b7e75f61d0d5b6923417725.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 54bb877d9058412680ae04433ebd34cadfa1e78e)
Diffstat (limited to 'src/knutmainwindow.cpp')
-rw-r--r--src/knutmainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/knutmainwindow.cpp b/src/knutmainwindow.cpp
index 8e09747..a043c4e 100644
--- a/src/knutmainwindow.cpp
+++ b/src/knutmainwindow.cpp
@@ -403,14 +403,14 @@ void KNutMainWindow::showUpsData (void) {
m_existLowHighXfer = false;
}
else {
- m_lowXfer = atof(nutStringVar);
+ m_lowXfer = nutStringVar.toFloat();
nutStringVar = m_activeUpsInfo->upsNet->readStringVar(m_activeUpsInfo->highxferVar);
if (nutStringVar.isEmpty()) {
m_highXfer = -1;
m_existLowHighXfer = false;
}
else {
- m_highXfer = atof(nutStringVar);
+ m_highXfer = nutStringVar.toFloat();
m_existLowHighXfer = true;
}
}