From c81da919962b29705e21d26f8cfecfae2f50041f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 4 Oct 2018 21:00:24 +0200 Subject: Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/hdsensorslist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hdsensorslist.cpp') 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); -- cgit v1.2.1