Made this const for great justice

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40565
This commit is contained in:
Scott Ehlert 2007-03-02 09:15:54 +00:00
parent de588c77b9
commit 9de900d3eb
3 changed files with 8 additions and 8 deletions

View File

@ -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];

View File

@ -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);

View File

@ -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;
/**