summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--networkstatus/networkstatusindicator.cpp6
-rw-r--r--networkstatus/networkstatusindicator.h2
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 );
};