mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-18 08:03:11 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -69,7 +69,7 @@ const JNINativeMethod NATIVES[] = {
|
||||
*/
|
||||
LocalRefPtr JavaLibrary::convert(const ValueDictionary & source)
|
||||
{
|
||||
if (ms_env == NULL)
|
||||
if (ms_env == nullptr)
|
||||
return LocalRef::cms_nullPtr;
|
||||
|
||||
// create the dictionary
|
||||
@@ -150,7 +150,7 @@ void JavaLibrary::convert(const jobject & source, ValueDictionary & target)
|
||||
target.clear();
|
||||
|
||||
JNIEnv * env = getEnv();
|
||||
if (env == NULL)
|
||||
if (env == nullptr)
|
||||
return;
|
||||
|
||||
if (!env->IsInstanceOf(source, ms_clsDictionary))
|
||||
|
||||
Reference in New Issue
Block a user