diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-06-08 11:48:06 -0400 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-06-08 11:48:09 -0400 |
| commit | 496aea54c0a25812c56175dfcaaee48ad9fe117b (patch) | |
| tree | 4a37fb2de77c0d3a21e4d79baf88def313616a95 /Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp | |
| parent | c99b0f2eb86e3437e6913c3bc87307b2ccc5f5fb (diff) | |
CodeDiffDialog: Pass QString by const reference to create_item
Avoids churning string copies when updating
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp b/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp index b043fbecba..bdb00edd01 100644 --- a/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeDiffDialog.cpp @@ -361,7 +361,7 @@ void CodeDiffDialog::Update(bool include) OnExclude();
}
- const auto create_item = [](const QString string = {}, const u32 address = 0x00000000) {
+ const auto create_item = [](const QString& string = {}, const u32 address = 0x00000000) {
QTableWidgetItem* item = new QTableWidgetItem(string);
item->setData(Qt::UserRole, address);
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
