From bc9e97ed2394d6721cb200ffe0c3eb0aabadb2c4 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Sep 2010 18:22:11 +0000 Subject: [PATCH] Attempt to fix Qt runtime signal/slot connection errors git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1177195 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- networkstatus/networkstatusindicator.cpp | 6 +++--- networkstatus/networkstatusindicator.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/networkstatus/networkstatusindicator.cpp b/networkstatus/networkstatusindicator.cpp index 2fc62f0a7..957d6f739 100644 --- a/networkstatus/networkstatusindicator.cpp +++ b/networkstatus/networkstatusindicator.cpp @@ -38,8 +38,8 @@ StatusBarNetworkStatusIndicator::StatusBarNetworkStatusIndicator( label->setPixmap( SmallIcon("connect_no") ); TQToolTip::add( label, i18n( "The desktop is offline" ) ); - connect( ConnectionManager::self(), TQT_SIGNAL( statusChanged( TQString, NetworkStatus::EnumStatus ) ), - TQT_SLOT( networkStatusChanged( TQString, NetworkStatus::EnumStatus) ) ); + connect( ConnectionManager::self(), TQT_SIGNAL( statusChanged( const TQString &, NetworkStatus::EnumStatus ) ), + TQT_SLOT( networkStatusChanged( const TQString &, NetworkStatus::EnumStatus) ) ); } @@ -52,7 +52,7 @@ StatusBarNetworkStatusIndicator::~StatusBarNetworkStatusIndicator() { } -void StatusBarNetworkStatusIndicator::networkStatusChanged( TQString host, NetworkStatus::EnumStatus status ) +void StatusBarNetworkStatusIndicator::networkStatusChanged( const TQString & host, NetworkStatus::EnumStatus status ) { networkStatusChanged(status); } diff --git a/networkstatus/networkstatusindicator.h b/networkstatus/networkstatusindicator.h index 268e9c59e..f1cfa966a 100644 --- a/networkstatus/networkstatusindicator.h +++ b/networkstatus/networkstatusindicator.h @@ -35,7 +35,7 @@ public: virtual ~StatusBarNetworkStatusIndicator(); void init(); protected slots: - void networkStatusChanged( TQString host, NetworkStatus::EnumStatus status ); + void networkStatusChanged( const TQString & host, NetworkStatus::EnumStatus status ); void networkStatusChanged( NetworkStatus::EnumStatus status ); };