diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-02-27 12:03:38 -0800 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-02-27 12:03:38 -0800 |
| commit | 8eeb93d51acaaf4bc4ae6672ee9e898246b5f65c (patch) | |
| tree | d9103acb908a2b090fa172ab9983d80bb24ca3cd /Source/Core/DolphinQt/Debugger/CodeWidget.cpp | |
| parent | 5090a028e6e4125b780bcb1c76dcd8fe956a0b97 (diff) | |
CodeWidget: Simplify Case-Insensitive Contains
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeWidget.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp index 0bf2937dbf..092c539bfb 100644 --- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp @@ -359,7 +359,7 @@ void CodeWidget::UpdateCallstack() { const QString name = QString::fromStdString(frame.Name.substr(0, frame.Name.length() - 1)); - if (name.toUpper().indexOf(filter.toUpper()) == -1) + if (!name.contains(filter, Qt::CaseInsensitive)) continue; auto* item = new QListWidgetItem(name); @@ -389,7 +389,7 @@ void CodeWidget::UpdateSymbols() item->setData(Qt::UserRole, symbol.second.address); - if (name.toUpper().indexOf(m_symbol_filter.toUpper()) != -1) + if (name.contains(m_symbol_filter, Qt::CaseInsensitive)) m_symbols_list->addItem(item); } @@ -411,7 +411,7 @@ void CodeWidget::UpdateFunctionCalls(const Common::Symbol* symbol) const QString name = QString::fromStdString(fmt::format("> {} ({:08x})", call_symbol->name, addr)); - if (name.toUpper().indexOf(filter.toUpper()) == -1) + if (!name.contains(filter, Qt::CaseInsensitive)) continue; auto* item = new QListWidgetItem(name); @@ -436,7 +436,7 @@ void CodeWidget::UpdateFunctionCallers(const Common::Symbol* symbol) const QString name = QString::fromStdString(fmt::format("< {} ({:08x})", caller_symbol->name, addr)); - if (name.toUpper().indexOf(filter.toUpper()) == -1) + if (!name.contains(filter, Qt::CaseInsensitive)) continue; auto* item = new QListWidgetItem(name); |
