mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
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:
parent
3136c9d156
commit
314f18644f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user