[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdepim/networkstatus
From: David Faure <faure () kde ! org>
Date: 2007-11-06 9:26:04
Message-ID: 1194341164.388428.27272.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 733423 by dfaure:
const iteration to avoid detaching; --noise.
M +4 -4 networkstatus.cpp
M +1 -1 networkstatus.h
--- branches/KDE/3.5/kdepim/networkstatus/networkstatus.cpp #733422:733423
@@ -92,7 +92,7 @@
Network * p = networkForHost( host );
if ( !p )
{
- kdDebug() << k_funcinfo << " no networks have status for host '" << host << "'" << endl;
+ //kdDebug() << k_funcinfo << " no networks have status for host '" << host << "'" << endl;
return (int)NetworkStatus::NoNetworks;
}
else
@@ -196,15 +196,15 @@
/*
* Determine the network to use for the supplied host
*/
-Network * NetworkStatusModule::networkForHost( const QString & host )
+Network * NetworkStatusModule::networkForHost( const QString & host ) const
{
// return a null pointer if no networks are registered
if ( d->networks.isEmpty() )
return 0;
- NetworkList::iterator it = d->networks.begin();
+ NetworkList::const_iterator it = d->networks.begin();
Network * bestNetwork = *(it++);
- NetworkList::iterator end = d->networks.end();
+ NetworkList::const_iterator end = d->networks.end();
for ( ; it != end; ++it )
{
if ( (*it)->reachabilityFor( host ) > bestNetwork->reachabilityFor( host ) )
--- branches/KDE/3.5/kdepim/networkstatus/networkstatus.h #733422:733423
@@ -71,7 +71,7 @@
protected:
// QStringList networkUsers( const QString & networkName );
- Network * networkForHost( const QString & host );
+ Network * networkForHost( const QString & host ) const;
private:
class Private;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic