summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-06-08 11:45:12 -0400
committerLioncash <mai.iam2048@gmail.com>2023-06-08 11:45:14 -0400
commit867e7d259d46e4798784e152358f49982b78ab1f (patch)
tree5cee9c7d962d8b20cce0e0100517b7e1e928226d /Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp
parent78f5c5f8d23f8dc8e5650d776b5883252a31385d (diff)
BreakpointDialog: Pass QString by const reference to invalid_input
Gets rid of redundant copying.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/BreakpointDialog.cpp2
1 files changed, 1 insertions, 1 deletions
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));
};