From 17118265cf93b35b0b68e450ea5f43046c1d81c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 15 Aug 2023 19:00:08 +0200 Subject: Fix FTBFS from issue #9. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/kvilib/ext/kvi_garbage.cpp | 4 ++-- src/kvirc/ui/kvi_customtoolbar.cpp | 2 +- src/kvirc/ui/kvi_frame.cpp | 4 ++-- src/modules/options/instances.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/kvilib/ext/kvi_garbage.cpp b/src/kvilib/ext/kvi_garbage.cpp index e6adb801..17c2afb9 100644 --- a/src/kvilib/ext/kvi_garbage.cpp +++ b/src/kvilib/ext/kvi_garbage.cpp @@ -62,13 +62,13 @@ void KviGarbageCollector::garbageSuicide() tqDebug("Ops... garbage suicide while no garbage list"); return; } - int idx = m_pGarbageList->findRef(TQT_TQOBJECT(sender())); + int idx = m_pGarbageList->findRef(sender()); if(idx == -1) { tqDebug("Ops... unregistered garbage suicide"); return; } - m_pGarbageList->removeRef(TQT_TQOBJECT(sender())); + m_pGarbageList->removeRef(sender()); if(m_pGarbageList->isEmpty()) { cleanup(); diff --git a/src/kvirc/ui/kvi_customtoolbar.cpp b/src/kvirc/ui/kvi_customtoolbar.cpp index 83a6da1c..844b0e2e 100644 --- a/src/kvirc/ui/kvi_customtoolbar.cpp +++ b/src/kvirc/ui/kvi_customtoolbar.cpp @@ -136,7 +136,7 @@ void KviCustomToolBar::paintEvent(TQPaintEvent * e) void KviCustomToolBar::filteredChildDestroyed() { if(!m_pFilteredChildren)return; - const TQObject * o = TQT_TQOBJECT(sender()); + const TQObject * o = sender(); m_pFilteredChildren->remove((void *)o); } diff --git a/src/kvirc/ui/kvi_frame.cpp b/src/kvirc/ui/kvi_frame.cpp index fffb4649..6cca7b8e 100644 --- a/src/kvirc/ui/kvi_frame.cpp +++ b/src/kvirc/ui/kvi_frame.cpp @@ -417,7 +417,7 @@ KviAccel * KviFrame::installAccelerators(TQWidget * wnd) void KviFrame::accelActivated(int id) { - KviAccel * acc = (KviAccel *)TQT_TQOBJECT(sender()); + KviAccel * acc = (KviAccel *)sender(); int keys = (int)(acc->key(id)); KviTaskBarItem *item = 0; @@ -1139,7 +1139,7 @@ void KviFrame::customizeToolBars() void KviFrame::toolbarsPopupSelected(int id) { - const TQObject * o = TQT_TQOBJECT(sender()); + const TQObject * o = sender(); if(!o)return; if(!o->inherits("KviTalPopupMenu"))return; const KviTalPopupMenu * p = (const KviTalPopupMenu *)o; diff --git a/src/modules/options/instances.cpp b/src/modules/options/instances.cpp index a91cf149..d08b7a2a 100644 --- a/src/modules/options/instances.cpp +++ b/src/modules/options/instances.cpp @@ -3489,7 +3489,7 @@ void KviOptionsInstanceManager::cleanup(KviModule * m) void KviOptionsInstanceManager::widgetDestroyed() { - KviOptionsWidgetInstanceEntry * e = findInstanceEntry(TQT_TQOBJECT(sender()),m_pInstanceTree); + KviOptionsWidgetInstanceEntry * e = findInstanceEntry(sender(),m_pInstanceTree); if(e)e->pWidget = 0; if(g_iOptionWidgetInstances > 0)g_iOptionWidgetInstances--; -- cgit v1.2.1