From 3ec2e5d1452640f61934f62bb4d5820c09812710 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 21 Dec 2023 11:50:27 +0900 Subject: Replace various '#define' strings - part 6 Signed-off-by: Michele Calgaro --- scheck/scheck.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scheck') diff --git a/scheck/scheck.cpp b/scheck/scheck.cpp index 5c5e2579..2d904af9 100644 --- a/scheck/scheck.cpp +++ b/scheck/scheck.cpp @@ -909,7 +909,7 @@ void StyleCheckStyle::accelManageRecursive(TQWidget* widget) while ((walk = iter.current())) { if (walk->isWidgetType()) - accelManageRecursive(TQT_TQWIDGET(walk)); + accelManageRecursive(static_cast(walk)); ++iter; } } @@ -2637,7 +2637,7 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat if ( event->type() == TQEvent::Paint && object->inherits("TQLabel") ) { - TQLabel* lb = static_cast(TQT_TQWIDGET(object)); + TQLabel* lb = static_cast(object); if (lb->pixmap() || lb->picture() || lb->movie() || (lb->textFormat() == TQt::RichText) || (lb->textFormat() == TQt::AutoText && TQStyleSheet::mightBeRichText(lb->text())) ) { @@ -2702,12 +2702,12 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat if ( event->type() == TQEvent::Paint && object->inherits("TQGroupBox") ) { TQPaintEvent * pevent = static_cast(event); - TQGroupBox* gb = static_cast(TQT_TQWIDGET(object)); + TQGroupBox* gb = static_cast(object); bool nestedGroupBox = false; TQString stripped_title = removedXX(stripAccelViolations(gb->title())); //Walk parent hierarchy to check whether any are groupboxes too.. - TQObject* parent = TQT_TQOBJECT(gb); + TQObject* parent = gb; // GCC suggested parentheses around assignment used as truth value // I suggested that it could eat me. GCC won. -- cgit v1.2.1