mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-10 21:00:06 +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
|
@ -18,6 +18,7 @@
|
|||
#include "core/hle/service/cfg/cfg.h"
|
||||
#include "core/settings.h"
|
||||
#include "network/network.h"
|
||||
#include "ui_lobby.h"
|
||||
#ifdef ENABLE_WEB_SERVICE
|
||||
#include "web_service/web_backend.h"
|
||||
#endif
|
||||
|
@ -81,6 +82,8 @@ Lobby::Lobby(QWidget* parent, QStandardItemModel* list,
|
|||
RefreshLobby();
|
||||
}
|
||||
|
||||
Lobby::~Lobby() = default;
|
||||
|
||||
void Lobby::UpdateGameList(QStandardItemModel* list) {
|
||||
game_list->clear();
|
||||
for (int i = 0; i < list->rowCount(); i++) {
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
#include "common/announce_multiplayer_room.h"
|
||||
#include "core/announce_multiplayer_session.h"
|
||||
#include "network/network.h"
|
||||
#include "ui_lobby.h"
|
||||
|
||||
namespace Ui {
|
||||
class Lobby;
|
||||
}
|
||||
|
||||
class LobbyModel;
|
||||
class LobbyFilterProxyModel;
|
||||
|
@ -28,7 +31,7 @@ class Lobby : public QDialog {
|
|||
public:
|
||||
explicit Lobby(QWidget* parent, QStandardItemModel* list,
|
||||
std::shared_ptr<Core::AnnounceMultiplayerSession> session);
|
||||
~Lobby() = default;
|
||||
~Lobby() override;
|
||||
|
||||
/**
|
||||
* Updates the lobby with a new game list model.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue