From 9de900d3eb0260ca50f496878cdaab2949a4aef5 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 2 Mar 2007 09:15:54 +0000 Subject: [PATCH] Made this const for great justice --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40565 --- core/systems/ForwardSys.cpp | 6 +++--- core/systems/ForwardSys.h | 6 +++--- public/IForwardSys.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/systems/ForwardSys.cpp b/core/systems/ForwardSys.cpp index 2f6c39b2..2103b1d6 100644 --- a/core/systems/ForwardSys.cpp +++ b/core/systems/ForwardSys.cpp @@ -43,7 +43,7 @@ void CForwardManager::OnSourceModShutdown() g_PluginSys.RemovePluginsListener(this); } -IForward *CForwardManager::CreateForward(const char *name, ExecType et, unsigned int num_params, ParamType *types, ...) +IForward *CForwardManager::CreateForward(const char *name, ExecType et, unsigned int num_params, const ParamType *types, ...) { CForward *fwd; va_list ap; @@ -61,7 +61,7 @@ IForward *CForwardManager::CreateForward(const char *name, ExecType et, unsigned return fwd; } -IChangeableForward *CForwardManager::CreateForwardEx(const char *name, ExecType et, int num_params, ParamType *types, ...) +IChangeableForward *CForwardManager::CreateForwardEx(const char *name, ExecType et, int num_params, const ParamType *types, ...) { CForward *fwd; va_list ap; @@ -186,7 +186,7 @@ void CForwardManager::OnPluginPauseChange(IPlugin *plugin, bool paused) * ACTUAL FORWARD API IMPLEMENTATION * *************************************/ -CForward *CForward::CreateForward(const char *name, ExecType et, unsigned int num_params, ParamType *types, va_list ap) +CForward *CForward::CreateForward(const char *name, ExecType et, unsigned int num_params, const ParamType *types, va_list ap) { ParamType _types[SP_MAX_EXEC_PARAMS]; diff --git a/core/systems/ForwardSys.h b/core/systems/ForwardSys.h index 0582e3f9..e0ce371b 100644 --- a/core/systems/ForwardSys.h +++ b/core/systems/ForwardSys.h @@ -68,7 +68,7 @@ public: static CForward *CreateForward(const char *name, ExecType et, unsigned int num_params, - ParamType *types, + const ParamType *types, va_list ap); private: void _Int_PushArray(cell_t *inarray, unsigned int cells, int flags); @@ -108,12 +108,12 @@ public: //IForwardManager IForward *CreateForward(const char *name, ExecType et, unsigned int num_params, - ParamType *types, + const ParamType *types, ...); IChangeableForward *CreateForwardEx(const char *name, ExecType et, int num_params, - ParamType *types, + const ParamType *types, ...); IForward *FindForward(const char *name, IChangeableForward **ifchng); void ReleaseForward(IForward *forward); diff --git a/public/IForwardSys.h b/public/IForwardSys.h index 97ed2b9a..fc903fe4 100644 --- a/public/IForwardSys.h +++ b/public/IForwardSys.h @@ -289,7 +289,7 @@ namespace SourceMod virtual IForward *CreateForward(const char *name, ExecType et, unsigned int num_params, - ParamType *types, + const ParamType *types, ...) =0; /** @@ -309,7 +309,7 @@ namespace SourceMod virtual IChangeableForward *CreateForwardEx(const char *name, ExecType et, int num_params, - ParamType *types, + const ParamType *types, ...) =0; /**