This commit is contained in:
Nav
2022-01-16 18:54:58 +00:00
parent b9d05e03eb
commit ae00ed8013
6 changed files with 19 additions and 18 deletions

View File

@@ -126,7 +126,7 @@ TargetRegistersPaneWidget::TargetRegistersPaneWidget(
void TargetRegistersPaneWidget::filterRegisters(const QString& keyword) {
auto stdKeyword = keyword.toLower().toStdString();
for (auto& registerGroupWidget : this->registerGroupWidgets) {
for (const auto& registerGroupWidget : this->registerGroupWidgets) {
// If the group name matches the keyword, then don't bother iterating through all the register widgets
if (keyword.isEmpty() || registerGroupWidget->name.contains(keyword, Qt::CaseInsensitive)) {
registerGroupWidget->setVisible(true);