diff options
| author | 2020-04-17 19:57:48 -0400 | |
|---|---|---|
| committer | 2020-04-17 19:59:31 -0400 | |
| commit | 0cfd3b94db89f4fc6b5755d61060a684aa9ff7d6 (patch) | |
| tree | 1e51f495d8203796981e00d051fcb9df66e7183d /src | |
| parent | Merge pull request #3704 from lioncash/fmt (diff) | |
| download | yuzu-0cfd3b94db89f4fc6b5755d61060a684aa9ff7d6.tar.gz yuzu-0cfd3b94db89f4fc6b5755d61060a684aa9ff7d6.tar.xz yuzu-0cfd3b94db89f4fc6b5755d61060a684aa9ff7d6.zip | |
service/time: Add virtual destructors where applicable
Many of these implementations are used to implement a polymorphic
interface. While not directly used polymorphically, this prevents
virtual destruction from ever becoming an issue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/time/steady_clock_core.h | 1 | ||||
| -rw-r--r-- | src/core/hle/service/time/system_clock_context_update_callback.h | 2 | ||||
| -rw-r--r-- | src/core/hle/service/time/system_clock_core.h | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/time/steady_clock_core.h b/src/core/hle/service/time/steady_clock_core.h index 84af3d105..d80a2385f 100644 --- a/src/core/hle/service/time/steady_clock_core.h +++ b/src/core/hle/service/time/steady_clock_core.h | |||
| @@ -16,6 +16,7 @@ namespace Service::Time::Clock { | |||
| 16 | class SteadyClockCore { | 16 | class SteadyClockCore { |
| 17 | public: | 17 | public: |
| 18 | SteadyClockCore() = default; | 18 | SteadyClockCore() = default; |
| 19 | virtual ~SteadyClockCore() = default; | ||
| 19 | 20 | ||
| 20 | const Common::UUID& GetClockSourceId() const { | 21 | const Common::UUID& GetClockSourceId() const { |
| 21 | return clock_source_id; | 22 | return clock_source_id; |
diff --git a/src/core/hle/service/time/system_clock_context_update_callback.h b/src/core/hle/service/time/system_clock_context_update_callback.h index 6260de6c3..2b0fa7e75 100644 --- a/src/core/hle/service/time/system_clock_context_update_callback.h +++ b/src/core/hle/service/time/system_clock_context_update_callback.h | |||
| @@ -20,7 +20,7 @@ namespace Service::Time::Clock { | |||
| 20 | class SystemClockContextUpdateCallback { | 20 | class SystemClockContextUpdateCallback { |
| 21 | public: | 21 | public: |
| 22 | SystemClockContextUpdateCallback(); | 22 | SystemClockContextUpdateCallback(); |
| 23 | ~SystemClockContextUpdateCallback(); | 23 | virtual ~SystemClockContextUpdateCallback(); |
| 24 | 24 | ||
| 25 | bool NeedUpdate(const SystemClockContext& value) const; | 25 | bool NeedUpdate(const SystemClockContext& value) const; |
| 26 | 26 | ||
diff --git a/src/core/hle/service/time/system_clock_core.h b/src/core/hle/service/time/system_clock_core.h index 54407a6c5..608dd3b2e 100644 --- a/src/core/hle/service/time/system_clock_core.h +++ b/src/core/hle/service/time/system_clock_core.h | |||
| @@ -22,7 +22,7 @@ class SystemClockContextUpdateCallback; | |||
| 22 | class SystemClockCore { | 22 | class SystemClockCore { |
| 23 | public: | 23 | public: |
| 24 | explicit SystemClockCore(SteadyClockCore& steady_clock_core); | 24 | explicit SystemClockCore(SteadyClockCore& steady_clock_core); |
| 25 | ~SystemClockCore(); | 25 | virtual ~SystemClockCore(); |
| 26 | 26 | ||
| 27 | SteadyClockCore& GetSteadyClockCore() const { | 27 | SteadyClockCore& GetSteadyClockCore() const { |
| 28 | return steady_clock_core; | 28 | return steady_clock_core; |