diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-01-18 16:56:54 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-01-18 16:56:54 +0100 |
commit | 9e73d0dac0774955348a5164087363c5b33927b8 (patch) | |
tree | 61eb5d729c4e48e1fabe596f387a3e67a1d1d415 /lib/about | |
parent | Rewrite lib/web to lib/webprofile (diff) | |
download | smolbote-9e73d0dac0774955348a5164087363c5b33927b8.tar.xz |
Add tools/report-clang-tidy.sh
- Fix various clang-tidy warnings
- Fix use-after-free crash when deleting profiles
Diffstat (limited to 'lib/about')
-rw-r--r-- | lib/about/aboutplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/about/aboutplugin.cpp b/lib/about/aboutplugin.cpp index b2fab51..b345b75 100644 --- a/lib/about/aboutplugin.cpp +++ b/lib/about/aboutplugin.cpp @@ -30,7 +30,7 @@ QTreeWidgetItem *createItem(const QString &key, const QJsonValue &json, QTreeWid case QJsonValue::Array: item->setText(1, QString()); - for(const QJsonValue &v : json.toArray()) { + for(const auto &v : json.toArray()) { createItem(QString(), v, item); } break; |