make getChars and releaseChars static, to prevent them being confused with implementations in other objects if they're not inlined (debug mode)

This commit is contained in:
Joshua Warner 2013-09-06 08:47:46 -06:00
parent 3136c9d156
commit 314f18644f

View File

@ -222,11 +222,11 @@ class Directory {
} // namespace
inline string_t getChars(JNIEnv* e, jstring path) {
static inline string_t getChars(JNIEnv* e, jstring path) {
return reinterpret_cast<string_t>(e->GET_CHARS(path, 0));
}
inline void releaseChars(JNIEnv* e, jstring path, string_t chars) {
static inline void releaseChars(JNIEnv* e, jstring path, string_t chars) {
e->RELEASE_CHARS(path, chars);
}