Fix compile warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user