From 6148e60759606fe8c1d7037956a38b9a4427e8b2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Aug 2023 18:47:49 +0900 Subject: Drop TQT_BASE_OBJECT* defines Signed-off-by: Michele Calgaro --- kopete/protocols/oscar/liboscar/client.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'kopete/protocols/oscar') diff --git a/kopete/protocols/oscar/liboscar/client.cpp b/kopete/protocols/oscar/liboscar/client.cpp index a500028a..10fec375 100644 --- a/kopete/protocols/oscar/liboscar/client.cpp +++ b/kopete/protocols/oscar/liboscar/client.cpp @@ -1127,8 +1127,7 @@ void Client::requestServerRedirect( WORD family, WORD exchange, void Client::haveServerForRedirect( const TQString& host, const TQByteArray& cookie, WORD ) { //nasty sender() usage to get the task with chat room info - TQObject* o = TQT_TQOBJECT(const_cast( sender() )); - ServerRedirectTask* srt = dynamic_cast( o ); + ServerRedirectTask* srt = dynamic_cast( const_cast(sender()) ); //create a new connection and set it up int colonPos = host.find(':'); @@ -1248,8 +1247,7 @@ void Client::determineDisconnection( int code, const TQString& string ) return; //yay for the sender() hack! - TQObject* obj = TQT_TQOBJECT(const_cast( sender() )); - Connection* c = dynamic_cast( obj ); + Connection* c = dynamic_cast( const_cast(sender()) ); if ( !c ) return; -- cgit v1.2.1