newer standards prefer nullptr over NULL - this is most of them but there are others too

This commit is contained in:
DarthArgus
2016-02-15 00:07:31 -06:00
parent 6bb5137dc4
commit 03dc62efba
937 changed files with 14983 additions and 14983 deletions
@@ -61,7 +61,7 @@ jboolean JNICALL ScriptMethodsSystemNamespace::sendConsoleCommand(JNIEnv * env,
{
JavaStringParam localCommand(command);
ServerObject* object = NULL;
ServerObject* object = nullptr;
if (!JavaLibrary::getObject(target, object))
return JNI_FALSE;
@@ -86,7 +86,7 @@ jboolean JNICALL ScriptMethodsSystemNamespace::sendConsoleCommand(JNIEnv * env,
* @param section the config file section
* @param key the config file key
*
* @return the key value, or null if the key doesn't exist
* @return the key value, or nullptr if the key doesn't exist
*/
jstring JNICALL ScriptMethodsSystemNamespace::getConfigSetting(JNIEnv * env, jobject self,
jstring section, jstring key)
@@ -108,12 +108,12 @@ jstring JNICALL ScriptMethodsSystemNamespace::getConfigSetting(JNIEnv * env, job
return 0;
const ConfigFile::Section * sec = ConfigFile::getSection(sectionName.c_str());
if (sec == NULL)
if (sec == nullptr)
return 0;
const ConfigFile::Key * ky = sec->findKey(keyName.c_str());
if (ky == NULL)
return NULL;
if (ky == nullptr)
return nullptr;
JavaString jvalue(ky->getAsString(ky->getCount()-1, ""));
return jvalue.getReturnValue();