From e26f6836d4bd4f03ae0ad89f6299ad13c7443777 Mon Sep 17 00:00:00 2001 From: Enrico van Oosten Date: Fri, 10 Aug 2018 11:00:31 +0200 Subject: [PATCH] !B Fix compiler warning for SDummyCVar remove const in parameter Copied from Perforce Change: 1834975 --- Code/CryEngine/CryCommon/CrySystem/ConsoleRegistration.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/CryEngine/CryCommon/CrySystem/ConsoleRegistration.h b/Code/CryEngine/CryCommon/CrySystem/ConsoleRegistration.h index 91622975f..01d217757 100644 --- a/Code/CryEngine/CryCommon/CrySystem/ConsoleRegistration.h +++ b/Code/CryEngine/CryCommon/CrySystem/ConsoleRegistration.h @@ -203,8 +203,8 @@ struct SDummyCVar : ICVar const char* GetDataProbeString() const override { return ""; } void Set(const char* s) override { if (SQueryTypeEnum::ParseString(s) != value) InvalidAccess(); } void ForceSet(const char* s) override { Set(s); } - void Set(const float f) override { if (static_cast(f) != value) InvalidAccess(); } - void Set(const int i) override { if (static_cast(i) != value) InvalidAccess(); } + void Set(float f) override { if (static_cast(f) != value) InvalidAccess(); } + void Set(int i) override { if (static_cast(i) != value) InvalidAccess(); } void Set(int64 i) override { if (static_cast(i) != value) InvalidAccess(); } void SetFromString(const char* szValue) override { Set(szValue); } void ClearFlags(int flags) override {} -- 2.11.4.GIT