mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
BreakpointWidget: Pass QString by const reference to create_item
Avoids churning string copies when performing updates.
This commit is contained in:
parent
867e7d259d
commit
c99b0f2eb8
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ void BreakpointWidget::Update()
|
||||||
int i = 0;
|
int i = 0;
|
||||||
m_table->setRowCount(i);
|
m_table->setRowCount(i);
|
||||||
|
|
||||||
const auto create_item = [](const QString string = {}) {
|
const auto create_item = [](const QString& string = {}) {
|
||||||
QTableWidgetItem* item = new QTableWidgetItem(string);
|
QTableWidgetItem* item = new QTableWidgetItem(string);
|
||||||
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
||||||
return item;
|
return item;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue