diff options
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; |