summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdehardwaredevices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw/tdehardwaredevices.cpp')
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index a1c884856..149ecab5f 100644
--- a/tdecore/tdehw/tdehardwaredevices.cpp
+++ b/tdecore/tdehw/tdehardwaredevices.cpp
@@ -127,7 +127,7 @@ TDEHardwareDevices::TDEHardwareDevices() {
dpy_id_map = 0;
// Set up device list
- m_deviceList.setAutoDelete( TRUE ); // the list owns the objects
+ m_deviceList.setAutoDelete( true ); // the list owns the objects
// Initialize udev interface
m_udevStruct = udev_new();
@@ -249,10 +249,10 @@ void TDEHardwareDevices::setTriggerlessHardwareUpdatesEnabled(bool enable) {
if (enable) {
TQDir nodezerocpufreq("/sys/devices/system/cpu/cpu0/cpufreq");
if (nodezerocpufreq.exists()) {
- m_cpuWatchTimer->start( 500, FALSE ); // 0.5 second repeating timer
+ m_cpuWatchTimer->start( 500, false ); // 0.5 second repeating timer
}
m_batteryWatchTimer->stop(); // Battery devices are included in stateless devices
- m_deviceWatchTimer->start( 1000, FALSE ); // 1 second repeating timer
+ m_deviceWatchTimer->start( 1000, false ); // 1 second repeating timer
}
else {
m_cpuWatchTimer->stop();
@@ -264,9 +264,9 @@ void TDEHardwareDevices::setBatteryUpdatesEnabled(bool enable) {
if (enable) {
TQDir nodezerocpufreq("/sys/devices/system/cpu/cpu0/cpufreq");
if (nodezerocpufreq.exists()) {
- m_cpuWatchTimer->start( 500, FALSE ); // 0.5 second repeating timer
+ m_cpuWatchTimer->start( 500, false ); // 0.5 second repeating timer
}
- m_batteryWatchTimer->start( 5000, FALSE ); // 5 second repeating timer
+ m_batteryWatchTimer->start( 5000, false ); // 5 second repeating timer
}
else {
m_cpuWatchTimer->stop();