/***************************************************************************
- * Copyright (C) 2005-2019 by the Quassel Project *
+ * Copyright (C) 2005-2022 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
_searchString = searchString;
if (_scene) {
if (!searchString.startsWith(oldSearchString) || oldSearchString.isEmpty()) {
- // we can't reuse our all findings... cler the scene and do it all over
+ // we can't reuse our all findings... clear the scene and do it all over
updateHighlights();
}
else {
if (line)
chatLines << line;
}
- foreach (ChatLine* line, QList<ChatLine*>(chatLines.toList())) {
+ foreach (ChatLine* line, chatLines) {
updateHighlights(line);
}
}
if (line)
chatLines << line;
}
- QList<ChatLine*> chatLineList(chatLines.toList());
- foreach (ChatLine* line, chatLineList) {
+ foreach (ChatLine* line, chatLines) {
repositionHighlights(line);
}
}