BreakpointDialog: Pass QString by const reference to invalid_input

Gets rid of redundant copying.
This commit is contained in:
Lioncash 2023-06-08 11:45:12 -04:00
parent 78f5c5f8d2
commit 867e7d259d
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ void BreakpointDialog::OnAddressTypeChanged()
void BreakpointDialog::accept()
{
auto invalid_input = [this](QString field) {
auto invalid_input = [this](const QString& field) {
ModalMessageBox::critical(this, tr("Error"),
tr("Invalid input for the field \"%1\"").arg(field));
};