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
This commit is contained in:
Lioncash 2018-05-29 17:45:04 -04:00
parent 2beb135bdf
commit a7de492696
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class DSPEmulator
{ {
public: public:
virtual ~DSPEmulator(); virtual ~DSPEmulator();
virtual bool IsLLE() = 0; virtual bool IsLLE() const = 0;
virtual bool Initialize(bool wii, bool dsp_thread) = 0; virtual bool Initialize(bool wii, bool dsp_thread) = 0;
virtual void Shutdown() = 0; virtual void Shutdown() = 0;

View File

@ -27,7 +27,7 @@ public:
bool Initialize(bool wii, bool dsp_thread) override; bool Initialize(bool wii, bool dsp_thread) override;
void Shutdown() override; void Shutdown() override;
bool IsLLE() override { return false; } bool IsLLE() const override { return false; }
void DoState(PointerWrap& p) override; void DoState(PointerWrap& p) override;
void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) override; void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) override;

View File

@ -26,7 +26,7 @@ public:
bool Initialize(bool wii, bool dsp_thread) override; bool Initialize(bool wii, bool dsp_thread) override;
void Shutdown() override; void Shutdown() override;
bool IsLLE() override { return true; } bool IsLLE() const override { return true; }
void DoState(PointerWrap& p) override; void DoState(PointerWrap& p) override;
void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) override; void PauseAndLock(bool do_lock, bool unpause_on_unlock = true) override;