diff --git a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp index 2a2fff7aa2..2c063c4821 100644 --- a/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/RegisterWidget.cpp @@ -4,6 +4,13 @@ #include "DolphinQt2/Debugger/RegisterWidget.h" +#include + +#include +#include +#include +#include + #include "Core/Core.h" #include "Core/HW/ProcessorInterface.h" #include "Core/PowerPC/PowerPC.h" @@ -11,11 +18,6 @@ #include "DolphinQt2/QtUtils/ActionHelper.h" #include "DolphinQt2/Settings.h" -#include -#include -#include -#include - RegisterWidget::RegisterWidget(QWidget* parent) : QDockWidget(parent) { setWindowTitle(tr("Registers")); @@ -335,7 +337,7 @@ void RegisterWidget::PopulateTable() void RegisterWidget::AddRegister(int row, int column, RegisterType type, std::string register_name, std::function get_reg, std::function set_reg) { - auto* value = new RegisterColumn(type, get_reg, set_reg); + auto* value = new RegisterColumn(type, std::move(get_reg), std::move(set_reg)); if (m_table->rowCount() <= row) m_table->setRowCount(row + 1);