From a7de49269650df2cfbd8701f52332843e817aa2b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 29 May 2018 17:45:04 -0400 Subject: [PATCH] DSPEmulator: Make the IsLLE() member function const-qualified This function only queries state and doesn't modify it, so this can be made a const member function --- Source/Core/Core/DSPEmulator.h | 2 +- Source/Core/Core/HW/DSPHLE/DSPHLE.h | 2 +- Source/Core/Core/HW/DSPLLE/DSPLLE.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/DSPEmulator.h b/Source/Core/Core/DSPEmulator.h index c0a1d42d2f..4d69d8dd69 100644 --- a/Source/Core/Core/DSPEmulator.h +++ b/Source/Core/Core/DSPEmulator.h @@ -13,7 +13,7 @@ class DSPEmulator { public: virtual ~DSPEmulator(); - virtual bool IsLLE() = 0; + virtual bool IsLLE() const = 0; virtual bool Initialize(bool wii, bool dsp_thread) = 0; virtual void Shutdown() = 0; diff --git a/Source/Core/Core/HW/DSPHLE/DSPHLE.h b/Source/Core/Core/HW/DSPHLE/DSPHLE.h index e3da25b0fd..4a948ece25 100644 --- a/Source/Core/Core/HW/DSPHLE/DSPHLE.h +++ b/Source/Core/Core/HW/DSPHLE/DSPHLE.h @@ -27,7 +27,7 @@ public: bool Initialize(bool wii, bool dsp_thread) override; void Shutdown() override; - bool IsLLE() override { return false; } + bool IsLLE() const override { return false; } void DoState(PointerWrap& p) override; void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) override; diff --git a/Source/Core/Core/HW/DSPLLE/DSPLLE.h b/Source/Core/Core/HW/DSPLLE/DSPLLE.h index be55b17a82..f6797fa1ca 100644 --- a/Source/Core/Core/HW/DSPLLE/DSPLLE.h +++ b/Source/Core/Core/HW/DSPLLE/DSPLLE.h @@ -26,7 +26,7 @@ public: bool Initialize(bool wii, bool dsp_thread) override; void Shutdown() override; - bool IsLLE() override { return true; } + bool IsLLE() const override { return true; } void DoState(PointerWrap& p) override; void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) override;