From c00850c4c520c35ed7d28271f0cf8acb4ca5d7d7 Mon Sep 17 00:00:00 2001 From: lioncash Date: Mon, 24 Mar 2014 08:47:30 -0400 Subject: [PATCH] Minor const correctness --- rpcs3/Emu/Cell/PPUThread.h | 2 +- rpcs3/Emu/GS/RSXThread.h | 2 +- rpcs3/Emu/HDD/HDD.h | 2 +- rpcs3/Emu/Io/Keyboard.h | 2 +- rpcs3/Emu/Io/Mouse.h | 2 +- rpcs3/Emu/Io/Pad.h | 2 +- rpcs3/Emu/event.h | 2 +- rpcs3/Loader/ELF.h | 2 +- rpcs3/Loader/Loader.h | 8 ++++---- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUThread.h b/rpcs3/Emu/Cell/PPUThread.h index 0302180399..d0db068ab9 100644 --- a/rpcs3/Emu/Cell/PPUThread.h +++ b/rpcs3/Emu/Cell/PPUThread.h @@ -401,7 +401,7 @@ struct PPCdouble return (u64&)_double; } - u32 GetZerosCount() + u32 GetZerosCount() const { u32 ret; u32 dd = frac >> 32; diff --git a/rpcs3/Emu/GS/RSXThread.h b/rpcs3/Emu/GS/RSXThread.h index c0e55d7871..75da6578b4 100644 --- a/rpcs3/Emu/GS/RSXThread.h +++ b/rpcs3/Emu/GS/RSXThread.h @@ -30,7 +30,7 @@ struct RSXVertexData RSXVertexData(); void Reset(); - bool IsEnabled() { return size > 0; } + bool IsEnabled() const { return size > 0; } void Load(u32 start, u32 count); u32 GetTypeSize(); diff --git a/rpcs3/Emu/HDD/HDD.h b/rpcs3/Emu/HDD/HDD.h index 3271ed4605..c403df21f5 100644 --- a/rpcs3/Emu/HDD/HDD.h +++ b/rpcs3/Emu/HDD/HDD.h @@ -235,7 +235,7 @@ public: return 0; } - u64 GetSize() + u64 GetSize() const { return m_info.size; } diff --git a/rpcs3/Emu/Io/Keyboard.h b/rpcs3/Emu/Io/Keyboard.h index 5a44408fde..1cd6201def 100644 --- a/rpcs3/Emu/Io/Keyboard.h +++ b/rpcs3/Emu/Io/Keyboard.h @@ -20,7 +20,7 @@ public: CellKbData& GetData(const u32 keyboard) { return m_keyboard_handler->GetData(keyboard); } CellKbConfig& GetConfig(const u32 keyboard) { return m_keyboard_handler->GetConfig(keyboard); } - bool IsInited() { return m_inited; } + bool IsInited() const { return m_inited; } //private: //DECLARE_EVENT_TABLE(); diff --git a/rpcs3/Emu/Io/Mouse.h b/rpcs3/Emu/Io/Mouse.h index 90f2336fbc..6b2e47611a 100644 --- a/rpcs3/Emu/Io/Mouse.h +++ b/rpcs3/Emu/Io/Mouse.h @@ -19,7 +19,7 @@ public: CellMouseData& GetData(const u32 mouse) { return m_mouse_handler->GetData(mouse); } CellMouseRawData& GetRawData(const u32 mouse) { return m_mouse_handler->GetRawData(mouse); } - bool IsInited() { return m_inited; } + bool IsInited() const { return m_inited; } //private: //DECLARE_EVENT_TABLE(); diff --git a/rpcs3/Emu/Io/Pad.h b/rpcs3/Emu/Io/Pad.h index 2fdafb0639..6860f7b3d2 100644 --- a/rpcs3/Emu/Io/Pad.h +++ b/rpcs3/Emu/Io/Pad.h @@ -18,7 +18,7 @@ public: PadInfo& GetInfo() { return m_pad_handler->GetInfo(); } Array