summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/RegisterWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/RegisterWidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
index 84b7e7b74f..6eb66435b0 100644
--- a/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/RegisterWidget.cpp
@@ -517,8 +517,9 @@ void RegisterWidget::PopulateTable()
m_table->resizeColumnsToContents();
}
-void RegisterWidget::AddRegister(int row, int column, RegisterType type, std::string register_name,
- std::function<u64()> get_reg, std::function<void(u64)> set_reg)
+void RegisterWidget::AddRegister(int row, int column, RegisterType type,
+ const std::string& register_name, std::function<u64()> get_reg,
+ std::function<void(u64)> set_reg)
{
auto* value = new RegisterColumn(type, std::move(get_reg), std::move(set_reg));