diff options
| author | 2018-10-25 16:52:21 -0400 | |
|---|---|---|
| committer | 2018-10-25 16:52:23 -0400 | |
| commit | bf7da804c5435a589909466d45e5ddf9a772cd45 (patch) | |
| tree | a7c97a789c18c611002c411d504acbed5069cc6c | |
| parent | configure_system: Simplify UUID generation call in AddUser() (diff) | |
| download | yuzu-bf7da804c5435a589909466d45e5ddf9a772cd45.tar.gz yuzu-bf7da804c5435a589909466d45e5ddf9a772cd45.tar.xz yuzu-bf7da804c5435a589909466d45e5ddf9a772cd45.zip | |
configure_system: Default initialize member variables
These should be initialized to deterministic values so it's easier to
catch improper behavior, as it'll always be reproducable, instead of
performing uninitialized reads.
| -rw-r--r-- | src/yuzu/configuration/configure_system.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/yuzu/configuration/configure_system.h b/src/yuzu/configuration/configure_system.h index 86269ccd5..0d15d9ac4 100644 --- a/src/yuzu/configuration/configure_system.h +++ b/src/yuzu/configuration/configure_system.h | |||
| @@ -57,11 +57,12 @@ private: | |||
| 57 | std::vector<QList<QStandardItem*>> list_items; | 57 | std::vector<QList<QStandardItem*>> list_items; |
| 58 | 58 | ||
| 59 | std::unique_ptr<Ui::ConfigureSystem> ui; | 59 | std::unique_ptr<Ui::ConfigureSystem> ui; |
| 60 | bool enabled; | 60 | bool enabled = false; |
| 61 | 61 | ||
| 62 | int birthmonth, birthday; | 62 | int birthmonth = 0; |
| 63 | int language_index; | 63 | int birthday = 0; |
| 64 | int sound_index; | 64 | int language_index = 0; |
| 65 | int sound_index = 0; | ||
| 65 | 66 | ||
| 66 | std::unique_ptr<Service::Account::ProfileManager> profile_manager; | 67 | std::unique_ptr<Service::Account::ProfileManager> profile_manager; |
| 67 | }; | 68 | }; |