BreakpointDialog: Pass QString by const reference to invalid_input
Gets rid of redundant copying.
This commit is contained in:
parent
78f5c5f8d2
commit
867e7d259d
|
@ -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));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue