diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-03 15:55:36 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-08 17:13:22 +0900 |
| commit | 2cab1f3059038ab001f5185c29f0791c77aeeba1 (patch) | |
| tree | e294a699a78e0aef2969216fc8fc1378b83b0064 /ksirc/puke/playout.cpp | |
| parent | b2cb25ce7dde70c48747856d22dfac03f27033e1 (diff) | |
| download | tdenetwork-2cab1f3059038ab001f5185c29f0791c77aeeba1.tar.gz tdenetwork-2cab1f3059038ab001f5185c29f0791c77aeeba1.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 89969dcb2142d91b295c8d18cde46e22ef118dce)
Diffstat (limited to 'ksirc/puke/playout.cpp')
| -rw-r--r-- | ksirc/puke/playout.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ksirc/puke/playout.cpp b/ksirc/puke/playout.cpp index 22e60887..86ab097f 100644 --- a/ksirc/puke/playout.cpp +++ b/ksirc/puke/playout.cpp @@ -32,7 +32,7 @@ PObject *PLayout::createWidget(CreateArgs &ca) throw(errorCommandFailed(-ca.pm->iCommand, -1)); if((ca.parent != 0) && - (ca.parent->widget()->isWidgetType() == TRUE)){ + (ca.parent->widget()->isWidgetType())){ qbl = new TQBoxLayout((TQWidget *) ca.parent->widget(), (TQBoxLayout::Direction) direction, border); // kdDebug(5008) << "Creating layout with parent: " << parent.iWinId << endl; @@ -88,7 +88,7 @@ void PLayout::messageHandler(int fd, PukeMessage *pm) } PObject *pld = controller()->id2pobject(fd, pm->iWinId); PObject *pls = controller()->id2pobject(fd, pm->iArg); - if( (pld->widget()->inherits("TQBoxLayout") == FALSE) || (pls->widget()->inherits("TQBoxLayout") == FALSE)) + if( !pld->widget()->inherits("TQBoxLayout") || !pls->widget()->inherits("TQBoxLayout") ) throw(errorCommandFailed(PUKE_LAYOUT_ADDLAYOUT_ACK, 1)); PLayout *plbd = (PLayout *) pld; PLayout *plbs = (PLayout *) pls; @@ -102,7 +102,7 @@ void PLayout::messageHandler(int fd, PukeMessage *pm) } else if(pm->iCommand == PUKE_LAYOUT_ADDSTRUT){ PObject *po = controller()->id2pobject(fd, pm->iWinId); - if(po->widget()->inherits("PBoxLayout") != TRUE) + if(!po->widget()->inherits("PBoxLayout")) throw(errorCommandFailed(PUKE_LAYOUT_ADDSTRUT_ACK, 1)); PLayout *pl = (PLayout *) po; @@ -115,7 +115,7 @@ void PLayout::messageHandler(int fd, PukeMessage *pm) } else if(pm->iCommand == PUKE_LAYOUT_ACTIVATE){ PObject *po = controller()->id2pobject(fd, pm->iWinId); - if(po->widget()->inherits("PBoxLayout") != TRUE) + if(!po->widget()->inherits("PBoxLayout")) throw(errorCommandFailed(PUKE_LAYOUT_ACTIVATE_ACK, 1)); PLayout *pl = (PLayout *) po; @@ -136,7 +136,7 @@ void PLayout::messageHandler(int fd, PukeMessage *pm) void PLayout::setWidget(TQObject *_layout) { // kdDebug(5008) << "PObject setwidget called" << endl; - if(_layout != 0 && _layout->inherits("TQBoxLayout") == FALSE) + if(_layout != 0 && !_layout->inherits("TQBoxLayout")) { errorInvalidSet(_layout); return; |
