From 80d99744db98b26dec562e9a1f3056e788c3d3ed Mon Sep 17 00:00:00 2001 From: Amos Date: Tue, 10 May 2022 13:24:22 +0200 Subject: [PATCH] Add const qualifiers --- r5dev/tier1/bitbuf.cpp | 4 ++-- r5dev/tier1/bitbuf.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/r5dev/tier1/bitbuf.cpp b/r5dev/tier1/bitbuf.cpp index be2e08ac..d4c0fd8c 100644 --- a/r5dev/tier1/bitbuf.cpp +++ b/r5dev/tier1/bitbuf.cpp @@ -58,12 +58,12 @@ void CBitBuffer::SetDebugName(const char* pName) m_pDebugName = pName; } -const char* CBitBuffer::GetDebugName() +const char* CBitBuffer::GetDebugName() const { return m_pDebugName; } -bool CBitBuffer::IsOverflowed() +bool CBitBuffer::IsOverflowed() const { return m_bOverflow; } diff --git a/r5dev/tier1/bitbuf.h b/r5dev/tier1/bitbuf.h index 3a288adb..74a16539 100644 --- a/r5dev/tier1/bitbuf.h +++ b/r5dev/tier1/bitbuf.h @@ -20,8 +20,8 @@ class CBitBuffer public: CBitBuffer(void); void SetDebugName(const char* pName); - const char* GetDebugName(); - bool IsOverflowed(); + const char* GetDebugName() const; + bool IsOverflowed() const; void SetOverflowFlag(); ////////////////////////////////////