mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
CodeDiffDialog: Pass QString by const reference to create_item
Avoids churning string copies when updating
This commit is contained in:
@ -361,7 +361,7 @@ void CodeDiffDialog::Update(bool include)
|
|||||||
OnExclude();
|
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);
|
QTableWidgetItem* item = new QTableWidgetItem(string);
|
||||||
item->setData(Qt::UserRole, address);
|
item->setData(Qt::UserRole, address);
|
||||||
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
||||||
|
Reference in New Issue
Block a user