Changeset View
Changeset View
Standalone View
Standalone View
cli/kdeconnect-cli.cpp
Context not available. | |||||
90 | } | 90 | } | ||
---|---|---|---|---|---|
91 | const QStringList devices = blockOnReply<QStringList>(iface.devices(paired, reachable)); | 91 | const QStringList devices = blockOnReply<QStringList>(iface.devices(paired, reachable)); | ||
92 | 92 | | |||
93 | Q_FOREACH (const QString& id, devices) { | 93 | for (const QString& id : devices) { | ||
94 | if (parser.isSet(QStringLiteral("id-only"))) { | 94 | if (parser.isSet(QStringLiteral("id-only"))) { | ||
95 | QTextStream(stdout) << id << endl; | 95 | QTextStream(stdout) << id << endl; | ||
96 | } else { | 96 | } else { | ||
Context not available. |