From 856dcf7f7bc3619f8172632a446068c7e2c35f6c Mon Sep 17 00:00:00 2001 From: Rami Potinkara Date: Mon, 19 May 2025 10:04:11 +0300 Subject: [PATCH] Android: don't disambiguate the convertToJni call with 'template' There is no non-template overload of LocalFrame::convertToJni, and clang 18 complains about an explicit .template without a template argument list. We call convertToJni without either in other places, so do so here as well. Fixes: QTBUG-136967 Change-Id: I2b4bbc8a4e2056bd2a8bff390ea0847f2e18202e Reviewed-by: Volker Hilsheimer (cherry picked from commit ea8f19f50bc6de845fb5ce7675b3b30dbc5c4344) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/kernel/qjniarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qjniarray.h b/src/corelib/kernel/qjniarray.h index a69b4a6dac3..13349688d20 100644 --- a/src/corelib/kernel/qjniarray.h +++ b/src/corelib/kernel/qjniarray.h @@ -772,7 +772,7 @@ public: if constexpr (QtJniTypes::isObjectType()) { QtJniTypes::Detail::LocalFrame frame(env); - jobject element = frame.template convertToJni(val); + jobject element = frame.convertToJni(val); env->SetObjectArrayElement(object(), i, element); } else { // primitive types if constexpr (QtJniTypes::sameTypeForJni)