From df3f9af6d7f2541b4f0e874097bd82abf7bccb31 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 13 May 2018 15:34:38 -0400 Subject: [PATCH] NewPatchDialog: Convert PatchEngine include into a forward declaration Avoids needing to include Core headers in UI-related header files, preventing unintentional propagation. --- Source/Core/DolphinQt2/Config/NewPatchDialog.cpp | 2 ++ Source/Core/DolphinQt2/Config/NewPatchDialog.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Config/NewPatchDialog.cpp b/Source/Core/DolphinQt2/Config/NewPatchDialog.cpp index fbe081d0b2..55136d7565 100644 --- a/Source/Core/DolphinQt2/Config/NewPatchDialog.cpp +++ b/Source/Core/DolphinQt2/Config/NewPatchDialog.cpp @@ -15,6 +15,8 @@ #include #include +#include "Core/PatchEngine.h" + NewPatchDialog::NewPatchDialog(QWidget* parent, PatchEngine::Patch& patch) : QDialog(parent), m_patch(patch) { diff --git a/Source/Core/DolphinQt2/Config/NewPatchDialog.h b/Source/Core/DolphinQt2/Config/NewPatchDialog.h index cc62712d9a..2ac8edb630 100644 --- a/Source/Core/DolphinQt2/Config/NewPatchDialog.h +++ b/Source/Core/DolphinQt2/Config/NewPatchDialog.h @@ -9,7 +9,10 @@ #include #include -#include "Core/PatchEngine.h" +namespace PatchEngine +{ +struct Patch; +} class QDialogButtonBox; class QGroupBox;