Skip to content

Commit

Permalink
DolphinQt/Config/ARCodeWidget: Use forward declarations where applicable
Browse files Browse the repository at this point in the history
Avoids propagating headers into scopes where they're not necessary.

Also uncovered reliance on an indirect inclusion within
CheatsManager.cpp, which is now fixed.
  • Loading branch information
lioncash committed Jul 31, 2019
1 parent e08a76f commit a07d19a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Source/Core/DolphinQt/CheatsManager.cpp
Expand Up @@ -21,6 +21,7 @@
#include <QTableWidget> #include <QTableWidget>
#include <QVBoxLayout> #include <QVBoxLayout>


#include "Core/ActionReplay.h"
#include "Core/ConfigManager.h" #include "Core/ConfigManager.h"
#include "Core/Core.h" #include "Core/Core.h"
#include "Core/Debugger/PPCDebugInterface.h" #include "Core/Debugger/PPCDebugInterface.h"
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/DolphinQt/Config/ARCodeWidget.cpp
Expand Up @@ -43,6 +43,8 @@ ARCodeWidget::ARCodeWidget(const UICommon::GameFile& game, bool restart_required
OnSelectionChanged(); OnSelectionChanged();
} }


ARCodeWidget::~ARCodeWidget() = default;

void ARCodeWidget::CreateWidgets() void ARCodeWidget::CreateWidgets()
{ {
m_warning = new CheatWarningWidget(m_game_id, m_restart_required, this); m_warning = new CheatWarningWidget(m_game_id, m_restart_required, this);
Expand Down
7 changes: 6 additions & 1 deletion Source/Core/DolphinQt/Config/ARCodeWidget.h
Expand Up @@ -10,7 +10,11 @@
#include <vector> #include <vector>


#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Core/ActionReplay.h"
namespace ActionReplay
{
struct ARCode;
}


namespace UICommon namespace UICommon
{ {
Expand All @@ -28,6 +32,7 @@ class ARCodeWidget : public QWidget
Q_OBJECT Q_OBJECT
public: public:
explicit ARCodeWidget(const UICommon::GameFile& game, bool restart_required = true); explicit ARCodeWidget(const UICommon::GameFile& game, bool restart_required = true);
~ARCodeWidget() override;


void AddCode(ActionReplay::ARCode code); void AddCode(ActionReplay::ARCode code);


Expand Down

0 comments on commit a07d19a

Please sign in to comment.