summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdebacklightdevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw/tdebacklightdevice.cpp')
-rw-r--r--tdecore/tdehw/tdebacklightdevice.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdecore/tdehw/tdebacklightdevice.cpp b/tdecore/tdehw/tdebacklightdevice.cpp
index b3f696466..756c96a30 100644
--- a/tdecore/tdehw/tdebacklightdevice.cpp
+++ b/tdecore/tdehw/tdebacklightdevice.cpp
@@ -68,7 +68,7 @@ bool TDEBacklightDevice::canSetBrightness() {
TQString brightnessnode = systemPath() + "/brightness";
int rval = access (brightnessnode.ascii(), W_OK);
if (rval == 0) {
- return TRUE;
+ return true;
}
#ifdef WITH_TDEHWLIB_DAEMONS
@@ -89,7 +89,7 @@ bool TDEBacklightDevice::canSetBrightness() {
}
#endif // WITH_TDEHWLIB_DAEMONS
- return FALSE;
+ return false;
}
int TDEBacklightDevice::rawBrightness() {
@@ -97,7 +97,7 @@ int TDEBacklightDevice::rawBrightness() {
}
void TDEBacklightDevice::setRawBrightness(int br) {
- bool setRawBrightnessDone = FALSE;
+ bool setRawBrightnessDone = false;
TQString brightnessnode = systemPath() + "/brightness";
TQString brightnessCommand = TQString("%1").arg(br);
@@ -106,7 +106,7 @@ void TDEBacklightDevice::setRawBrightness(int br) {
TQTextStream stream( &file );
stream << brightnessCommand;
file.close();
- setRawBrightnessDone = TRUE;
+ setRawBrightnessDone = true;
}
#ifdef WITH_TDEHWLIB_DAEMONS
@@ -120,7 +120,7 @@ void TDEBacklightDevice::setRawBrightness(int br) {
params << TQT_DBusData::fromString(brightnessnode) << TQT_DBusData::fromString(brightnessCommand);
TQT_DBusMessage reply = hardwareControl.sendWithReply("SetBrightness", params);
if (reply.type() == TQT_DBusMessage::ReplyMessage) {
- setRawBrightnessDone = TRUE;
+ setRawBrightnessDone = true;
}
}
}