Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 4 months ago
parent e7ee4565df
commit 04e4c81e88
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -187,7 +187,7 @@ bool TDEDocker::x11EventFilter(XEvent * event)
// look for requests from a new instance of tdedocker // look for requests from a new instance of tdedocker
XClientMessageEvent *client = (XClientMessageEvent *) event; XClientMessageEvent *client = (XClientMessageEvent *) event;
if (!(client->message_type == 0x220679 && client->data.l[0] == 0xBABE)) if (!(client->message_type == 0x220679 && client->data.l[0] == 0xBABE))
return FALSE; return false;
TRACE("ClientMessage from PID=%ld. SelOwn=0x%x", TRACE("ClientMessage from PID=%ld. SelOwn=0x%x",
client->data.l[1], (unsigned) mSelectionOwner); client->data.l[1], (unsigned) mSelectionOwner);
@ -206,17 +206,17 @@ bool TDEDocker::x11EventFilter(XEvent * event)
*/ */
TRACE("User %i is trying something fishy...", buf.st_uid); TRACE("User %i is trying something fishy...", buf.st_uid);
unlink(tmp); unlink(tmp);
return TRUE; return true;
} }
TQFile f(tmp); TQFile f(tmp);
if (!f.open(IO_ReadOnly)) return TRUE; if (!f.open(IO_ReadOnly)) return true;
TQTextStream s(&f); TQTextStream s(&f);
TQStringList argv; TQStringList argv;
while (!s.atEnd()) { TQString x; s >> x; argv += x; } while (!s.atEnd()) { TQString x; s >> x; argv += x; }
f.close(); f.close();
unlink(tmp); // delete the tmp file unlink(tmp); // delete the tmp file
mTrayLabelMgr->processCommand(argv); mTrayLabelMgr->processCommand(argv);
return TRUE; return true;
} }
else else
{ {

@ -71,7 +71,7 @@ void TQTrayLabel::initialize(void)
mBalloon->setFont(TQToolTip::font()); mBalloon->setFont(TQToolTip::font());
mBalloon->setPalette(TQToolTip::palette()); mBalloon->setPalette(TQToolTip::palette());
mBalloon->setAlignment(TQt::AlignLeft | TQt::AlignTop); mBalloon->setAlignment(TQt::AlignLeft | TQt::AlignTop);
mBalloon->setAutoMask(FALSE); mBalloon->setAutoMask(false);
mBalloon->setAutoResize(true); mBalloon->setAutoResize(true);
setAlignment(TQt::AlignCenter); setAlignment(TQt::AlignCenter);
setBackgroundMode(X11ParentRelative); setBackgroundMode(X11ParentRelative);
@ -795,13 +795,13 @@ bool TQTrayLabel::x11EventFilter(XEvent *ev)
return true; // Dont process this again return true; // Dont process this again
} }
if (mDockedWindow != None || event->type != MapNotify) return FALSE; if (mDockedWindow != None || event->type != MapNotify) return false;
TRACE("%s Will analyze window 0x%x", me(), (int)((XMapEvent *)event)->window); TRACE("%s Will analyze window 0x%x", me(), (int)((XMapEvent *)event)->window);
// Check if this window is the soulmate we are looking for // Check if this window is the soulmate we are looking for
Display *display = TQPaintDevice::x11AppDisplay(); Display *display = TQPaintDevice::x11AppDisplay();
Window w = XmuClientWindow(display, ((XMapEvent *) event)->window); Window w = XmuClientWindow(display, ((XMapEvent *) event)->window);
if (!isNormalWindow(display, w)) return FALSE; if (!isNormalWindow(display, w)) return false;
if (!analyzeWindow(display, w, mPid, TQFileInfo(appName()).fileName().local8Bit())) if (!analyzeWindow(display, w, mPid, TQFileInfo(appName()).fileName().local8Bit()))
{ {
return false; return false;

@ -608,7 +608,7 @@ bool TrayLabelMgr::x11EventFilter(XEvent *ev)
bool res = t->x11EventFilter(ev); bool res = t->x11EventFilter(ev);
if (w == (((XAnyEvent *)ev)->window)) return res; if (w == (((XAnyEvent *)ev)->window)) return res;
if (w != None) ret |= res; if (w != None) ret |= res;
else if (res) return TRUE; else if (res) return true;
} }
return ret; return ret;

@ -180,12 +180,12 @@ bool analyzeWindow(Display *display, Window w, pid_t epid, const TQString &ename
// lets try the program name // lets try the program name
if (XGetClassHint(display, w, &ch)) if (XGetClassHint(display, w, &ch))
{ {
if (TQString(ch.res_name).find(ename, 0, FALSE) != -1) if (TQString(ch.res_name).find(ename, 0, false) != -1)
{ {
TRACE("ResName [%s] matched", ch.res_name); TRACE("ResName [%s] matched", ch.res_name);
this_is_our_man = true; this_is_our_man = true;
} }
else if (TQString(ch.res_class).find(ename, 0, FALSE) != -1) else if (TQString(ch.res_class).find(ename, 0, false) != -1)
{ {
TRACE("ResClass [%s] matched", ch.res_class); TRACE("ResClass [%s] matched", ch.res_class);
this_is_our_man = true; this_is_our_man = true;
@ -195,7 +195,7 @@ bool analyzeWindow(Display *display, Window w, pid_t epid, const TQString &ename
// sheer desperation // sheer desperation
char *wm_name = NULL; char *wm_name = NULL;
XFetchName(display, w, &wm_name); XFetchName(display, w, &wm_name);
if (wm_name && (TQString(wm_name).find(ename, 0, FALSE) != -1)) if (wm_name && (TQString(wm_name).find(ename, 0, false) != -1))
{ {
TRACE("WM_NAME [%s] matched", wm_name); TRACE("WM_NAME [%s] matched", wm_name);
this_is_our_man = true; this_is_our_man = true;

Loading…
Cancel
Save