diff options
author | 2012-08-15 16:57:32 +0900 | |
---|---|---|
committer | 2012-08-15 17:21:53 +0900 | |
commit | f6be15cffee14b35efce8a52296d7bf8e338b234 (patch) | |
tree | 622e579bfe3ea245e9f28b8f146d0bdaa277344c /native/jni/src/dic_traverse_wrapper.h | |
parent | 3979f060f0650cbc117eee0307d05fb0be78c6f2 (diff) | |
download | latinime-f6be15cffee14b35efce8a52296d7bf8e338b234.tar.gz latinime-f6be15cffee14b35efce8a52296d7bf8e338b234.tar.xz latinime-f6be15cffee14b35efce8a52296d7bf8e338b234.zip |
Step 30-A Constize gesture
Change-Id: I6c0b89d96532dc1c8ca71bb730ba22de5592ec67
Diffstat (limited to 'native/jni/src/dic_traverse_wrapper.h')
-rw-r--r-- | native/jni/src/dic_traverse_wrapper.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/native/jni/src/dic_traverse_wrapper.h b/native/jni/src/dic_traverse_wrapper.h index 8396d0027..292382487 100644 --- a/native/jni/src/dic_traverse_wrapper.h +++ b/native/jni/src/dic_traverse_wrapper.h @@ -34,7 +34,7 @@ class DicTraverseWrapper { return 0; } static void initDicTraverseSession(void *traverseSession, - Dictionary *dictionary, const int *prevWord, const int prevWordLength) { + const Dictionary *const dictionary, const int *prevWord, const int prevWordLength) { if (sDicTraverseSessionInitMethod) { sDicTraverseSessionInitMethod(traverseSession, dictionary, prevWord, prevWordLength); } @@ -45,11 +45,11 @@ class DicTraverseWrapper { } } static void setTraverseSessionFactoryMethod( - void *(*factoryMethod)(JNIEnv *env, jstring locale)) { + void *(*factoryMethod)(JNIEnv *, jstring)) { sDicTraverseSessionFactoryMethod = factoryMethod; } static void setTraverseSessionInitMethod( - void (*initMethod)(void *, Dictionary *, const int *, const int)) { + void (*initMethod)(void *, const Dictionary *const, const int *, const int)) { sDicTraverseSessionInitMethod = initMethod; } static void setTraverseSessionReleaseMethod(void (*releaseMethod)(void *)) { @@ -58,7 +58,8 @@ class DicTraverseWrapper { private: DISALLOW_IMPLICIT_CONSTRUCTORS(DicTraverseWrapper); static void *(*sDicTraverseSessionFactoryMethod)(JNIEnv *, jstring); - static void (*sDicTraverseSessionInitMethod)(void *, Dictionary *, const int *, const int); + static void (*sDicTraverseSessionInitMethod)( + void *, const Dictionary *const, const int *, const int); static void (*sDicTraverseSessionReleaseMethod)(void *); }; int register_DicTraverseSession(JNIEnv *env); |