Skip to content

Commit 70e0e07

Browse files
committed
Swap Cast argument order
* When composing a pipeline of method calls, you want the main subject last * Matches the order of appearance in other cast operations (static_cast, etc.)
1 parent ed7491a commit 70e0e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jni/object.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ namespace jni
155155
};
156156

157157
template < class OutTagType, class InTagType >
158-
Object<OutTagType> Cast(JNIEnv& env, const Object<InTagType>& object, const Class<OutTagType>& clazz)
158+
Object<OutTagType> Cast(JNIEnv& env, const Class<OutTagType>& clazz, const Object<InTagType>& object)
159159
{
160160
if (!object.IsInstanceOf(env, clazz))
161161
{

0 commit comments

Comments
 (0)