mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-11 05:10:05 +00:00
Use unique_ptr on all ui objects from .ui files (#5511)
* Forward declare ui and use unique_ptr * ConfigureEnhancements: use unique_ptr for ui * Use make_unique instead of new where applicable * Move some of the ui includes that already used unique_ptr * main.cpp: also make use of make_unique on Config * Address review comments
This commit is contained in:
parent
a576eb633f
commit
a26b466ac8
17 changed files with 257 additions and 229 deletions
|
@ -15,7 +15,6 @@
|
|||
#include "core/core.h"
|
||||
#include "core/hle/service/am/am.h"
|
||||
#include "core/savestate.h"
|
||||
#include "ui_main.h"
|
||||
|
||||
class AboutDialog;
|
||||
class Config;
|
||||
|
@ -49,6 +48,10 @@ namespace DiscordRPC {
|
|||
class DiscordInterface;
|
||||
}
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
}
|
||||
|
||||
class GMainWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -230,7 +233,7 @@ private:
|
|||
void HideMouseCursor();
|
||||
void ShowMouseCursor();
|
||||
|
||||
Ui::MainWindow ui;
|
||||
std::unique_ptr<Ui::MainWindow> ui;
|
||||
|
||||
GRenderWindow* render_window;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue