From 07e0c1cbf9358ee9e547f68bfa625ba861d48f8f Mon Sep 17 00:00:00 2001 From: mogemimi Date: Thu, 9 Jun 2016 09:25:06 +0900 Subject: [PATCH] Fix typo in method name: 'destory' -> 'destroy' --- .../android/java/src/org/cocos2dx/lib/Cocos2dxLocalStorage.java | 2 +- cocos/storage/local-storage/LocalStorage-android.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxLocalStorage.java b/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxLocalStorage.java index cdab16b3a8..c10d01ca95 100644 --- a/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxLocalStorage.java +++ b/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxLocalStorage.java @@ -56,7 +56,7 @@ public class Cocos2dxLocalStorage { return false; } - public static void destory() { + public static void destroy() { if (mDatabase != null) { mDatabase.close(); } diff --git a/cocos/storage/local-storage/LocalStorage-android.cpp b/cocos/storage/local-storage/LocalStorage-android.cpp index 26c8b5c43e..a00c50d568 100644 --- a/cocos/storage/local-storage/LocalStorage-android.cpp +++ b/cocos/storage/local-storage/LocalStorage-android.cpp @@ -72,7 +72,7 @@ void localStorageInit( const std::string& fullpath) void localStorageFree() { if (_initialized) { - JniHelper::callStaticVoidMethod(className, "destory"); + JniHelper::callStaticVoidMethod(className, "destroy"); _initialized = 0; } }