mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +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
|
} // 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));
|
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);
|
e->RELEASE_CHARS(path, chars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user