From 867e7d259d46e4798784e152358f49982b78ab1f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 8 Jun 2023 11:45:12 -0400 Subject: [PATCH] BreakpointDialog: Pass QString by const reference to invalid_input Gets rid of redundant copying. --- Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp b/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp index 78611f7d45..990ad7b9e0 100644 --- a/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp @@ -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)); };