diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-12 20:07:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 20:07:57 +0200 |
| commit | b4d161ff2951772ed22feca09924a7fb2aecafc3 (patch) | |
| tree | d83a4a18f0df38db06086520587218c49867331b /Source/Core | |
| parent | b3f4006bb72987711033658ea9d4b4039ff6455a (diff) | |
| parent | 9c0cd5c81a3658a52da0d1d0ef9d40b016b26d12 (diff) | |
Merge pull request #11938 from lioncash/inits
ParallelProgressDialog: Initialize all data members
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/QtUtils/ParallelProgressDialog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/QtUtils/ParallelProgressDialog.h b/Source/Core/DolphinQt/QtUtils/ParallelProgressDialog.h index 4335ec4b9f..573c2ed2d2 100644 --- a/Source/Core/DolphinQt/QtUtils/ParallelProgressDialog.h +++ b/Source/Core/DolphinQt/QtUtils/ParallelProgressDialog.h @@ -45,7 +45,7 @@ public: void SetValue(int progress) { emit SetValueSignal(progress); } // Can be called from any thread - bool WasCanceled() { return m_was_cancelled.IsSet(); } + bool WasCanceled() const { return m_was_cancelled.IsSet(); } signals: void CancelSignal(); @@ -126,6 +126,6 @@ private: QProgressDialog m_dialog; Common::Flag m_was_cancelled; - int m_last_received_progress; + int m_last_received_progress = 0; bool m_is_setting_value = false; }; |
