Made this const for great justice
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40565
This commit is contained in:
parent
de588c77b9
commit
9de900d3eb
@ -43,7 +43,7 @@ void CForwardManager::OnSourceModShutdown()
|
|||||||
g_PluginSys.RemovePluginsListener(this);
|
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;
|
CForward *fwd;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
@ -61,7 +61,7 @@ IForward *CForwardManager::CreateForward(const char *name, ExecType et, unsigned
|
|||||||
return fwd;
|
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;
|
CForward *fwd;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
@ -186,7 +186,7 @@ void CForwardManager::OnPluginPauseChange(IPlugin *plugin, bool paused)
|
|||||||
* ACTUAL FORWARD API IMPLEMENTATION *
|
* 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];
|
ParamType _types[SP_MAX_EXEC_PARAMS];
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
static CForward *CreateForward(const char *name,
|
static CForward *CreateForward(const char *name,
|
||||||
ExecType et,
|
ExecType et,
|
||||||
unsigned int num_params,
|
unsigned int num_params,
|
||||||
ParamType *types,
|
const ParamType *types,
|
||||||
va_list ap);
|
va_list ap);
|
||||||
private:
|
private:
|
||||||
void _Int_PushArray(cell_t *inarray, unsigned int cells, int flags);
|
void _Int_PushArray(cell_t *inarray, unsigned int cells, int flags);
|
||||||
@ -108,12 +108,12 @@ public: //IForwardManager
|
|||||||
IForward *CreateForward(const char *name,
|
IForward *CreateForward(const char *name,
|
||||||
ExecType et,
|
ExecType et,
|
||||||
unsigned int num_params,
|
unsigned int num_params,
|
||||||
ParamType *types,
|
const ParamType *types,
|
||||||
...);
|
...);
|
||||||
IChangeableForward *CreateForwardEx(const char *name,
|
IChangeableForward *CreateForwardEx(const char *name,
|
||||||
ExecType et,
|
ExecType et,
|
||||||
int num_params,
|
int num_params,
|
||||||
ParamType *types,
|
const ParamType *types,
|
||||||
...);
|
...);
|
||||||
IForward *FindForward(const char *name, IChangeableForward **ifchng);
|
IForward *FindForward(const char *name, IChangeableForward **ifchng);
|
||||||
void ReleaseForward(IForward *forward);
|
void ReleaseForward(IForward *forward);
|
||||||
|
@ -289,7 +289,7 @@ namespace SourceMod
|
|||||||
virtual IForward *CreateForward(const char *name,
|
virtual IForward *CreateForward(const char *name,
|
||||||
ExecType et,
|
ExecType et,
|
||||||
unsigned int num_params,
|
unsigned int num_params,
|
||||||
ParamType *types,
|
const ParamType *types,
|
||||||
...) =0;
|
...) =0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -309,7 +309,7 @@ namespace SourceMod
|
|||||||
virtual IChangeableForward *CreateForwardEx(const char *name,
|
virtual IChangeableForward *CreateForwardEx(const char *name,
|
||||||
ExecType et,
|
ExecType et,
|
||||||
int num_params,
|
int num_params,
|
||||||
ParamType *types,
|
const ParamType *types,
|
||||||
...) =0;
|
...) =0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user