| 13 | } |
| 14 | |
| 15 | QString aliasFor(const QVector<MqttAntennaAliasUpdate>& updates, const QString& token) |
| 16 | { |
| 17 | for (const auto& update : updates) { |
| 18 | if (update.token == token) |
| 19 | return update.alias; |
| 20 | } |
| 21 | return QStringLiteral("__missing__"); |
| 22 | } |
| 23 | |
| 24 | } // namespace |
| 25 |