diff options
author | Erol Baykal <erol@baykal.be> | 2018-01-06 00:40:45 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-02-05 10:51:23 +0100 |
commit | 23b413483dd29c640545a28b965d51018d50b403 (patch) | |
tree | 63c140aabcbebdc17bdb3ef85cedcee3f394d1da /platform/android/src | |
parent | 9fbf5f4e748b5d0b70cbc50e5194df282a5f9801 (diff) | |
download | qtlocation-mapboxgl-23b413483dd29c640545a28b965d51018d50b403.tar.gz |
[Android] fix typo in custom layer example
Diffstat (limited to 'platform/android/src')
-rw-r--r-- | platform/android/src/example_custom_layer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/src/example_custom_layer.cpp b/platform/android/src/example_custom_layer.cpp index 1ed68d0835..6d0bd4de4b 100644 --- a/platform/android/src/example_custom_layer.cpp +++ b/platform/android/src/example_custom_layer.cpp @@ -96,7 +96,7 @@ void nativeContextLost(void */*context*/) { mbgl::Log::Info(mbgl::Event::General, "nativeContextLost"); } -void nativeDenitialize(void *context) { +void nativeDeinitialize(void *context) { mbgl::Log::Info(mbgl::Event::General, "nativeDeinitialize"); delete reinterpret_cast<ExampleCustomLayer*>(context); } @@ -132,7 +132,7 @@ extern "C" JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) { env->SetStaticLongField(customLayerClass, env->GetStaticFieldID(customLayerClass, "DeinitializeFunction", "J"), - reinterpret_cast<jlong>(nativeDenitialize)); + reinterpret_cast<jlong>(nativeDeinitialize)); return JNI_VERSION_1_6; } |