Skip to content

Commit b65d7ba

Browse files
xezonjfirebaugh
authored andcommitted
Fix const correctness in jni Class
1 parent 69a84f7 commit b65d7ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/jni/class.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,31 +107,31 @@ namespace jni
107107
}
108108

109109
template < class... Args >
110-
Constructor<TagType, Args...> GetConstructor(JNIEnv& env)
110+
Constructor<TagType, Args...> GetConstructor(JNIEnv& env) const
111111
{
112112
return Constructor<TagType, Args...>(env, *this);
113113
}
114114

115115
template < class T >
116-
Field<TagType, T> GetField(JNIEnv& env, const char* name)
116+
Field<TagType, T> GetField(JNIEnv& env, const char* name) const
117117
{
118118
return Field<TagType, T>(env, *this, name);
119119
}
120120

121121
template < class T >
122-
StaticField<TagType, T> GetStaticField(JNIEnv& env, const char* name)
122+
StaticField<TagType, T> GetStaticField(JNIEnv& env, const char* name) const
123123
{
124124
return StaticField<TagType, T>(env, *this, name);
125125
}
126126

127127
template < class T >
128-
Method<TagType, T> GetMethod(JNIEnv& env, const char* name)
128+
Method<TagType, T> GetMethod(JNIEnv& env, const char* name) const
129129
{
130130
return Method<TagType, T>(env, *this, name);
131131
}
132132

133133
template < class T >
134-
StaticMethod<TagType, T> GetStaticMethod(JNIEnv& env, const char* name)
134+
StaticMethod<TagType, T> GetStaticMethod(JNIEnv& env, const char* name) const
135135
{
136136
return StaticMethod<TagType, T>(env, *this, name);
137137
}

0 commit comments

Comments
 (0)