diff options
| author | Mai M <mathew1800@gmail.com> | 2021-10-15 16:58:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-15 16:58:45 -0400 |
| commit | 5b7b7276d51130cdce5403c51370580bea4171a6 (patch) | |
| tree | 329800d428ac48926ca9bd1e20196a04a5e3c215 /src/yuzu/about_dialog.cpp | |
| parent | bad122b19594de66e85ab318e934709306001acd (diff) | |
| parent | 86908d569ed25b29711c2881703d82e8edd26353 (diff) | |
Merge pull request #7185 from Morph1984/make_unique_ui
yuzu: Use make_unique instead of operator new for constructing ui
Diffstat (limited to 'src/yuzu/about_dialog.cpp')
| -rw-r--r-- | src/yuzu/about_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuzu/about_dialog.cpp b/src/yuzu/about_dialog.cpp index 6b0155a78..04ab4ae21 100644 --- a/src/yuzu/about_dialog.cpp +++ b/src/yuzu/about_dialog.cpp @@ -8,7 +8,8 @@ #include "ui_aboutdialog.h" #include "yuzu/about_dialog.h" -AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent), ui(new Ui::AboutDialog) { +AboutDialog::AboutDialog(QWidget* parent) + : QDialog(parent), ui{std::make_unique<Ui::AboutDialog>()} { const auto branch_name = std::string(Common::g_scm_branch); const auto description = std::string(Common::g_scm_desc); const auto build_id = std::string(Common::g_build_id); |
