summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-06-08 11:46:14 -0400
committerLioncash <mai.iam2048@gmail.com>2023-06-08 11:46:16 -0400
commitc99b0f2eb86e3437e6913c3bc87307b2ccc5f5fb (patch)
treecdd21525f36a1a8eb2636b3819f29f9cf5676bbd /Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
parent867e7d259d46e4798784e152358f49982b78ab1f (diff)
BreakpointWidget: Pass QString by const reference to create_item
Avoids churning string copies when performing updates.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
index 588c353d88..de04411ece 100644
--- a/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/BreakpointWidget.cpp
@@ -168,7 +168,7 @@ void BreakpointWidget::Update()
int i = 0;
m_table->setRowCount(i);
- const auto create_item = [](const QString string = {}) {
+ const auto create_item = [](const QString& string = {}) {
QTableWidgetItem* item = new QTableWidgetItem(string);
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
return item;