cppcheck stuff (#1200)

* cppcheck stuff

* Update src/ui/RoomSettings.cpp

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>

* Update src/ui/RoomSettings.cpp

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>

* Fix linting

Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
This commit is contained in:
Loren Burkholder 2022-10-03 17:57:30 -04:00 committed by GitHub
parent 5e9eb845ab
commit 8ecbb39dc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 162 additions and 146 deletions

View file

@ -74,7 +74,7 @@ CompletionProxyModel::CompletionProxyModel(QAbstractItemModel *model,
this,
&CompletionProxyModel::newSearchString,
this,
[this](QString s) {
[this](const QString &s) {
searchString_ = s.toLower();
invalidate();
},
@ -167,7 +167,7 @@ CompletionProxyModel::completionAt(int i) const
}
void
CompletionProxyModel::setSearchString(QString s)
CompletionProxyModel::setSearchString(const QString &s)
{
emit newSearchString(s);
}