summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/tdebacklightdevice.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-07-07 22:14:25 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-07-07 22:37:13 +0900
commitc76553c4fb3ee8f839c17b4dc3c3beb3c4338eb3 (patch)
tree165203f9bcab23defadc9c1f2a56c99365b5887f /tdecore/tdehw/tdebacklightdevice.cpp
parent32566accdab31f598381e7e68330055f4a7178f1 (diff)
downloadtdelibs-c76553c4fb3ee8f839c17b4dc3c3beb3c4338eb3.tar.gz
tdelibs-c76553c4fb3ee8f839c17b4dc3c3beb3c4338eb3.zip
tdehw: TRUE/FALSE --> true/false renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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;
}
}
}