diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-10-04 21:00:24 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-10-15 03:31:59 +0200 |
commit | 97d4df605cb9e42956c362669770afe8d9d2008e (patch) | |
tree | ae28b66bf4d337ba51e7df288c303d419b01067d /src/lmsensorsalarms.cpp | |
parent | 57ddd73da73cbde48ddc5e58c9ec637e87a67160 (diff) | |
download | ksensors-97d4df605cb9e42956c362669770afe8d9d2008e.tar.gz ksensors-97d4df605cb9e42956c362669770afe8d9d2008e.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 c81da919962b29705e21d26f8cfecfae2f50041f)
Diffstat (limited to 'src/lmsensorsalarms.cpp')
-rw-r--r-- | src/lmsensorsalarms.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lmsensorsalarms.cpp b/src/lmsensorsalarms.cpp index abf3014..5a69cac 100644 --- a/src/lmsensorsalarms.cpp +++ b/src/lmsensorsalarms.cpp @@ -81,9 +81,9 @@ void LMSensorsAlarms::setValueChanged(Sensor *sensor) case acCommand: runSensorCommand( - (const char *)sensor->getDescription(), - (const char *)TQString::number(sensor->getValue()), - (const char *)readAlarmCommand(sensor->name()) + sensor->getDescription().local8Bit(), + TQString::number(sensor->getValue()).ascii(), + (readAlarmCommand(sensor->name())).local8Bit() ); break; } |