JNI: Simplify Traits specialization for QJniArrayMutableValueRef<T>
Just inherit from Traits<T>. Addresses header review comment. Change-Id: If11df666a925a13e54e94b30e42316a6aa06bbc7 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit c5c3730400d0f7bb1f1b93117f8ad5c1262ed695) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
a090ecbdd1
commit
1ed487f1ac
@ -967,16 +967,9 @@ template <typename T> struct Traits<QJniArray<T>> {
|
|||||||
return CTString("[") + Traits<T>::signature();
|
return CTString("[") + Traits<T>::signature();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
template <typename T> struct Traits<QJniArrayMutableValueRef<T>> {
|
|
||||||
static constexpr auto className()
|
template <typename T> struct Traits<QJniArrayMutableValueRef<T>> : public Traits<T> {};
|
||||||
{
|
|
||||||
return Traits<T>::className();
|
|
||||||
}
|
|
||||||
static constexpr auto signature()
|
|
||||||
{
|
|
||||||
return Traits<T>::signature();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
template <typename T> struct Traits<QList<T>> {
|
template <typename T> struct Traits<QList<T>> {
|
||||||
template <IfValidFieldType<T> = true>
|
template <IfValidFieldType<T> = true>
|
||||||
static constexpr auto signature()
|
static constexpr auto signature()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user