[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/dnssd
From:       Jakub Stachowski <qbast () go2 ! pl>
Date:       2008-04-01 21:49:00
Message-ID: 1207086540.604318.7224.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 792709 by qbast:

Add missing const noticed by pinotree 10 minutes after my commit.
Also silence two warnings.



 M  +1 -1      avahi-servicebrowser.cpp  
 M  +1 -1      dummy-servicebrowser.cpp  
 M  +1 -1      mdnsd-servicebrowser.cpp  
 M  +1 -1      servicebrowser.h  
 M  +2 -2      servicemodel.cpp  


--- trunk/KDE/kdelibs/dnssd/avahi-servicebrowser.cpp #792708:792709
@@ -51,7 +51,7 @@
     delete d;
 }
 
-bool ServiceBrowser::isAutoResolving()
+bool ServiceBrowser::isAutoResolving() const
 {
     return d->m_autoResolve;
 }
--- trunk/KDE/kdelibs/dnssd/dummy-servicebrowser.cpp #792708:792709
@@ -29,7 +29,7 @@
 ServiceBrowser::ServiceBrowser(const QString&,bool,const QString&, const QString&) : d(0)
 {}
 
-bool ServiceBrowser::isAutoResolving()
+bool ServiceBrowser::isAutoResolving() const
 {
     return false;
 }
--- trunk/KDE/kdelibs/dnssd/mdnsd-servicebrowser.cpp #792708:792709
@@ -63,7 +63,7 @@
 	delete d;
 }
 
-bool ServiceBrowser::isAutoResolving()
+bool ServiceBrowser::isAutoResolving() const
 {
     return d->m_autoResolve;
 }
--- trunk/KDE/kdelibs/dnssd/servicebrowser.h #792708:792709
@@ -125,7 +125,7 @@
 	Returns true if newly discovered services are resolved before being reported with serviceAdded()
 	\since 4.1
 	 */
-	bool isAutoResolving();
+	bool isAutoResolving() const;
 
 Q_SIGNALS:
 	/**
--- trunk/KDE/kdelibs/dnssd/servicemodel.cpp #792708:792709
@@ -48,7 +48,7 @@
     delete d;
 }
 
-int ServiceModel::columnCount(const QModelIndex& parent) const
+int ServiceModel::columnCount(const QModelIndex&) const
 {
     return d->m_browser->isAutoResolving() ? 3 : 1;
 }
@@ -57,7 +57,7 @@
     return (parent.isValid()) ? 0 : d->m_browser->services().size();
 }
 
-QModelIndex ServiceModel::parent(const QModelIndex& index ) const
+QModelIndex ServiceModel::parent(const QModelIndex&) const
 {
     return QModelIndex();
 }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic