diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-05-24 17:05:14 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-06-05 19:59:39 -0700 |
| commit | 7dc0bdd5dfaa7aa8f6902126c1e05b0ee23d45a9 (patch) | |
| tree | 337cd07555d8706cd3a827c4432974239f605e98 /Source/Core | |
| parent | 47fae68b0fbcee37e59753ad3f8a3a49fd544cd8 (diff) | |
BranchWatchProxyModel: Avoid String Copies In filterAcceptsRow
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp index c20b2e3c2d..e6c3e7341e 100644 --- a/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/BranchWatchDialog.cpp @@ -141,15 +141,15 @@ bool BranchWatchProxyModel::filterAcceptsRow(int source_row, const QModelIndex&) if (!m_origin_symbol_name.isEmpty()) { if (const QVariant& symbol_name_v = sourceModel()->GetSymbolList()[source_row].origin_name; - !symbol_name_v.isValid() || - !symbol_name_v.value<QString>().contains(m_origin_symbol_name, Qt::CaseInsensitive)) + !symbol_name_v.isValid() || !static_cast<const QString*>(symbol_name_v.data()) + ->contains(m_origin_symbol_name, Qt::CaseInsensitive)) return false; } if (!m_destin_symbol_name.isEmpty()) { if (const QVariant& symbol_name_v = sourceModel()->GetSymbolList()[source_row].destin_name; - !symbol_name_v.isValid() || - !symbol_name_v.value<QString>().contains(m_destin_symbol_name, Qt::CaseInsensitive)) + !symbol_name_v.isValid() || !static_cast<const QString*>(symbol_name_v.data()) + ->contains(m_destin_symbol_name, Qt::CaseInsensitive)) return false; } return true; |
