Fix clazy warning

This commit is contained in:
Nicolas Fella 2019-02-28 14:04:15 +01:00
parent 1ec20886a8
commit 51c17402b8

View file

@ -195,7 +195,8 @@ void Notification::parseNetworkPacket(const NetworkPacket& np)
m_actions.clear();
for (QJsonValue value : np.get<QJsonArray>(QStringLiteral("actions"))) {
const auto actions = np.get<QJsonArray>(QStringLiteral("actions"));
for (const QJsonValue& value : actions) {
m_actions.append(value.toString());
}