diff --git a/qt/6.5.1-QTBUG-113782.patch b/qt/6.5.1-QTBUG-113782.patch new file mode 100755 index 00000000..629e9340 --- /dev/null +++ b/qt/6.5.1-QTBUG-113782.patch @@ -0,0 +1,31 @@ +From 82f7f3de0e90bb7d1447cb710ffd2e1b315ae479 Mon Sep 17 00:00:00 2001 +From: Artem Dyomin +Date: Fri, 26 May 2023 15:15:52 +0200 +Subject: [PATCH] Remove std::unary_function usage + +std::unary_function was removed with c++17 + +Pick-to: 6.5 +Task-number: QTBUG-113782 +Change-Id: I4e330cd1f89dc14936acbccdeee8378ea4938870 +Reviewed-by: Lars Knoll +Reviewed-by: Qt CI Bot +Reviewed-by: Pavel Dubsky +--- + +diff --git a/src/plugins/multimedia/darwin/camera/avfcamerautility.mm b/src/plugins/multimedia/darwin/camera/avfcamerautility.mm +index 4334613..fb73ba3 100644 +--- a/src/plugins/multimedia/darwin/camera/avfcamerautility.mm ++++ b/src/plugins/multimedia/darwin/camera/avfcamerautility.mm +@@ -69,9 +69,9 @@ + } + }; + +-struct FormatHasNoFPSRange : std::unary_function ++struct FormatHasNoFPSRange + { +- bool operator() (AVCaptureDeviceFormat *format) ++ bool operator() (AVCaptureDeviceFormat *format) const + { + Q_ASSERT(format); + return !format.videoSupportedFrameRateRanges || !format.videoSupportedFrameRateRanges.count;