Fix compile warnings

This commit is contained in:
Jonas Kvinge
2020-04-23 21:08:28 +02:00
parent a303850341
commit 8da4c88fd3
54 changed files with 509 additions and 461 deletions

View File

@@ -151,9 +151,9 @@ void SimpleTreeItem<T>::Delete(int child_row) {
}
template <typename T>
T* SimpleTreeItem<T>::ChildByKey(const QString& key) const {
T* SimpleTreeItem<T>::ChildByKey(const QString &_key) const {
for (T* child : children) {
if (child->key == key) return child;
if (child->key == _key) return child;
}
return nullptr;
}