mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-16 06:13:50 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -434,7 +434,7 @@ static const Scripting::ScriptFuncTable ScriptFuncList[] =
|
||||
|
||||
//-- finish it up
|
||||
|
||||
{Scripting::TRIG_LAST_TRIGGER, NULL, NULL}
|
||||
{Scripting::TRIG_LAST_TRIGGER, nullptr, nullptr}
|
||||
};
|
||||
|
||||
const int NUM_SCRIPT_FUNCTIONS = sizeof(ScriptFuncList) / sizeof(ScriptFuncList[0]) - 1;
|
||||
@@ -444,7 +444,7 @@ const int NUM_SCRIPT_FUNCTIONS = sizeof(ScriptFuncList) / sizeof(ScriptFuncList[
|
||||
// globals
|
||||
//========================================================================
|
||||
|
||||
Scripting::_ScriptFuncHashMap *Scripting::ScriptFuncHashMap = NULL;
|
||||
Scripting::_ScriptFuncHashMap *Scripting::ScriptFuncHashMap = nullptr;
|
||||
|
||||
|
||||
//========================================================================
|
||||
@@ -468,6 +468,6 @@ void Scripting::InitScriptFuncHashMap(void)
|
||||
void Scripting::RemoveScriptFuncHashMap(void)
|
||||
{
|
||||
delete Scripting::ScriptFuncHashMap;
|
||||
Scripting::ScriptFuncHashMap = NULL;
|
||||
Scripting::ScriptFuncHashMap = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user