Changeset View
Changeset View
Standalone View
Standalone View
src/mdnsd-servicebrowser.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 122 | { | |||
---|---|---|---|---|---|
123 | return d->m_services; | 123 | return d->m_services; | ||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | void ServiceBrowser::virtual_hook(int, void *) | 126 | void ServiceBrowser::virtual_hook(int, void *) | ||
127 | {} | 127 | {} | ||
128 | 128 | | |||
129 | RemoteService::Ptr ServiceBrowserPrivate::find(RemoteService::Ptr s, const QList<RemoteService::Ptr> &where) const | 129 | RemoteService::Ptr ServiceBrowserPrivate::find(RemoteService::Ptr s, const QList<RemoteService::Ptr> &where) const | ||
130 | { | 130 | { | ||
131 | Q_FOREACH (const RemoteService::Ptr &i, where) if (*s == *i) { | 131 | for (const RemoteService::Ptr &i : where) if (*s == *i) { | ||
132 | return i; | 132 | return i; | ||
133 | } | 133 | } | ||
134 | return RemoteService::Ptr(); | 134 | return RemoteService::Ptr(); | ||
135 | } | 135 | } | ||
136 | 136 | | |||
137 | void ServiceBrowserPrivate::customEvent(QEvent *event) | 137 | void ServiceBrowserPrivate::customEvent(QEvent *event) | ||
138 | { | 138 | { | ||
139 | if (event->type() == QEvent::User + SD_ERROR) { | 139 | if (event->type() == QEvent::User + SD_ERROR) { | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |