mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-01 02:15:54 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user