summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/oscar
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-12 18:47:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-17 20:13:00 +0900
commit9795d15cda9fa26bfbd90321f774014537f9675b (patch)
treebf8891490cdfee593c7e28db0fbae55e68b162e4 /kopete/protocols/oscar
parente1feb0d70ede96e4407bb091220561b099dc781f (diff)
downloadtdenetwork-9795d15cda9fa26bfbd90321f774014537f9675b.tar.gz
tdenetwork-9795d15cda9fa26bfbd90321f774014537f9675b.zip
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6148e60759606fe8c1d7037956a38b9a4427e8b2)
Diffstat (limited to 'kopete/protocols/oscar')
-rw-r--r--kopete/protocols/oscar/liboscar/client.cpp6
1 files changed, 2 insertions, 4 deletions
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<TQT_BASE_OBJECT_NAME*>( sender() ));
- ServerRedirectTask* srt = dynamic_cast<ServerRedirectTask*>( o );
+ ServerRedirectTask* srt = dynamic_cast<ServerRedirectTask*>( const_cast<TQObject*>(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<TQT_BASE_OBJECT_NAME*>( sender() ));
- Connection* c = dynamic_cast<Connection*>( obj );
+ Connection* c = dynamic_cast<Connection*>( const_cast<TQObject*>(sender()) );
if ( !c )
return;