Changeset View
Changeset View
Standalone View
Standalone View
src/avahi-publicservice.cpp
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Line(s) | 220 | for (;;) { | |||
---|---|---|---|---|---|
233 | QDBusReply<QString> rep = m_server->GetAlternativeServiceName(m_serviceName); | 233 | QDBusReply<QString> rep = m_server->GetAlternativeServiceName(m_serviceName); | ||
234 | if (rep.isValid()) { | 234 | if (rep.isValid()) { | ||
235 | m_serviceName = rep.value(); | 235 | m_serviceName = rep.value(); | ||
236 | } else { | 236 | } else { | ||
237 | return false; | 237 | return false; | ||
238 | } | 238 | } | ||
239 | } | 239 | } | ||
240 | 240 | | |||
241 | Q_FOREACH (const QString &subtype, m_subtypes) { | 241 | for (const QString &subtype : qAsConst(m_subtypes)) { | ||
242 | m_group->AddServiceSubtype(-1, -1, 0, m_serviceName, m_type, domainToDNS(m_domain), subtype); | 242 | m_group->AddServiceSubtype(-1, -1, 0, m_serviceName, m_type, domainToDNS(m_domain), subtype); | ||
243 | } | 243 | } | ||
244 | return true; | 244 | return true; | ||
245 | } | 245 | } | ||
246 | 246 | | |||
247 | void PublicServicePrivate::serverStateChanged(int s, const QString &) | 247 | void PublicServicePrivate::serverStateChanged(int s, const QString &) | ||
248 | { | 248 | { | ||
249 | if (!m_running) { | 249 | if (!m_running) { | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |