From 6b13c4454a17983d815b6ae49ecce515cce164e4 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 7 May 2022 12:28:58 +0200 Subject: [PATCH] Add const qualifiers --- r5dev/client/vengineclient_impl.cpp | 4 ++-- r5dev/client/vengineclient_impl.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/r5dev/client/vengineclient_impl.cpp b/r5dev/client/vengineclient_impl.cpp index af9dd4f2..fb61326f 100644 --- a/r5dev/client/vengineclient_impl.cpp +++ b/r5dev/client/vengineclient_impl.cpp @@ -27,7 +27,7 @@ void CEngineClient::SetRestrictServerCommands(bool bRestricted) // Input : // Output : bool //--------------------------------------------------------------------------------- -bool CEngineClient::GetRestrictServerCommands() +bool CEngineClient::GetRestrictServerCommands() const { return *m_bRestrictServerCommands; } @@ -47,7 +47,7 @@ void CEngineClient::SetRestrictClientCommands(bool bRestricted) // Input : // Output : bool //--------------------------------------------------------------------------------- -bool CEngineClient::GetRestrictClientCommands() +bool CEngineClient::GetRestrictClientCommands() const { return *m_bRestrictClientCommands; } diff --git a/r5dev/client/vengineclient_impl.h b/r5dev/client/vengineclient_impl.h index 46f70922..6c85f962 100644 --- a/r5dev/client/vengineclient_impl.h +++ b/r5dev/client/vengineclient_impl.h @@ -4,9 +4,9 @@ class CEngineClient { public: void SetRestrictServerCommands(bool bRestrict); - bool GetRestrictServerCommands(); + bool GetRestrictServerCommands() const; void SetRestrictClientCommands(bool bRestrict); - bool GetRestrictClientCommands(); + bool GetRestrictClientCommands() const; void* GetLocalPlayer(); // Is actually C_Player. };