constify
svn path=/trunk/KDE/kdelibs/; revision=1182545
This commit is contained in:
parent
47a41796cc
commit
4eafdd6b27
@ -97,7 +97,7 @@ public:
|
||||
void associatedGraphicsWidgetDestroyed(QObject *obj);
|
||||
|
||||
void publish(AnnouncementMethods methods, const QString &name,
|
||||
PackageMetadata metadata = PackageMetadata());
|
||||
const PackageMetadata &metadata = PackageMetadata());
|
||||
|
||||
void unpublish();
|
||||
|
||||
|
@ -95,7 +95,7 @@ void ServicePrivate::associatedGraphicsWidgetDestroyed(QObject *obj)
|
||||
associatedGraphicsWidgets.remove(static_cast<QGraphicsWidget*>(obj));
|
||||
}
|
||||
|
||||
void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, PackageMetadata metadata)
|
||||
void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, const PackageMetadata &metadata)
|
||||
{
|
||||
#ifdef ENABLE_REMOTE_WIDGETS
|
||||
if (!serviceProvider) {
|
||||
@ -104,7 +104,7 @@ void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, P
|
||||
serviceProvider = new ServiceProvider(name, q);
|
||||
|
||||
if (methods.testFlag(ZeroconfAnnouncement) &&
|
||||
(DNSSD::ServiceBrowser::isAvailable() == DNSSD::ServiceBrowser::Working)) {
|
||||
(DNSSD::ServiceBrowser::isAvailable() == DNSSD::ServiceBrowser::Working)) {
|
||||
//TODO: dynamically pick a free port number.
|
||||
publicService = new DNSSD::PublicService(name, "_plasma._tcp", 4000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user