JNI: Move QJniArray constructor into the class body
Change-Id: Iae54afeef3b2017899c4ab1ec322efa3d0b819e2 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
a0fbe7712c
commit
f4f70c3e85
@ -221,7 +221,10 @@ public:
|
||||
template <typename Container
|
||||
, IfCanConvert<Container> = true
|
||||
>
|
||||
explicit QJniArray(Container &&container);
|
||||
explicit QJniArray(Container &&container)
|
||||
: QJniArrayBase(QJniArrayBase::fromContainer(std::forward<Container>(container)))
|
||||
{
|
||||
}
|
||||
|
||||
template <typename Other, std::enable_if_t<std::is_convertible_v<Other, Type>, bool> = true>
|
||||
QJniArray(QJniArray<Other> &&other)
|
||||
@ -420,16 +423,6 @@ auto QJniArrayBase::makeObjectArray(List &&list)
|
||||
return ResultType(localArray);
|
||||
}
|
||||
|
||||
|
||||
template <typename T>
|
||||
template <typename Container
|
||||
, QJniArrayBase::IfCanConvert<Container>
|
||||
>
|
||||
QJniArray<T>::QJniArray(Container &&container)
|
||||
: QJniArrayBase(QJniArrayBase::fromContainer(std::forward<Container>(container)))
|
||||
{
|
||||
}
|
||||
|
||||
namespace QtJniTypes
|
||||
{
|
||||
template <typename T> struct IsJniArray: std::false_type {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user