From 93ecee3e7114f319ee98608af8d063c11ef40c58 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 16 Feb 2024 19:17:51 +0100 Subject: [PATCH] Fix version constraint for `qputenv` usage The QByteArray overload has only been removed since Qt 6.5 and without the removal a QByteArray is attempted to be instantiated. --- cli/tests/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/tests/application.cpp b/cli/tests/application.cpp index 3c3d2a7..d409986 100644 --- a/cli/tests/application.cpp +++ b/cli/tests/application.cpp @@ -177,7 +177,7 @@ void ApplicationTests::test() // use environment variables to specify API-key and URL qputenv("SYNCTHING_CTL_API_KEY", apiKey); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) qputenv("SYNCTHING_CTL_URL", url); #else qputenv("SYNCTHING_CTL_URL", QByteArray(url.data(), static_cast(url.size())));