summaryrefslogtreecommitdiffstats
path: root/src/hdsensorslist.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-10-04 21:00:24 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-10-14 01:13:46 +0200
commitc81da919962b29705e21d26f8cfecfae2f50041f (patch)
treecc656dd0a7bbe1d0f64f5c3b22ee9d308617106f /src/hdsensorslist.cpp
parent397d18e98a15c33a45c6538cb7a4ff141ed88921 (diff)
downloadksensors-c81da919962b29705e21d26f8cfecfae2f50041f.tar.gz
ksensors-c81da919962b29705e21d26f8cfecfae2f50041f.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>
Diffstat (limited to 'src/hdsensorslist.cpp')
-rw-r--r--src/hdsensorslist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hdsensorslist.cpp b/src/hdsensorslist.cpp
index bb71b32..412b4c6 100644
--- a/src/hdsensorslist.cpp
+++ b/src/hdsensorslist.cpp
@@ -33,7 +33,7 @@ HDSensorsList::HDSensorsList(TQObject *parent, const char * name): SensorsList(p
{
process= 0;
- setDescription( TQString(i18n("Hard Disks")) );
+ setDescription( i18n("Hard Disks") );
setClass(Sensor::hdSensor);
@@ -54,7 +54,7 @@ HDSensorsList::HDSensorsList(TQObject *parent, const char * name): SensorsList(p
if(getDiskInfo(proc.getStdoutData(),str,value)) {
Sensor *sensor= new Sensor(this);
sensor->setType(Sensor::lmTemp);
- sensor->setName(*it);
+ sensor->setName(it->utf8());
sensor->setDescription(str);
sensor->setValueMax (40 , Sensor::dgCelsius);
sensor->setValueMin ( 0 , Sensor::dgCelsius);