From 18d37b40a1dff05c8e75928dfdf851bf2f1acf8b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 4 Jun 2022 16:52:38 -0500 Subject: user/[KDE Frameworks]: Update to 5.94.0 Many frameworks have added or removed dependencies. Documentation builds have been fixed for new tag file dependencies. * KIO: Fix build on GCC 8. * Prison: Ensure QR and DTMX barcodes are generated properly on big-endian systems. * Syndication: New framework. --- user/kio/cxx17.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 user/kio/cxx17.patch (limited to 'user/kio/cxx17.patch') diff --git a/user/kio/cxx17.patch b/user/kio/cxx17.patch new file mode 100644 index 000000000..d73e93b65 --- /dev/null +++ b/user/kio/cxx17.patch @@ -0,0 +1,21 @@ +G++ does not have transform_reduce until C++20, despite being part of the +C++17 standard. This reverts the only usage of Parallelism TR2 in KIO. + +--- kio-5.94.0/src/filewidgets/kurlnavigator.cpp.old 2022-05-12 07:14:39.000000000 -0500 ++++ kio-5.94.0/src/filewidgets/kurlnavigator.cpp 2022-06-03 01:42:48.541164895 -0500 +@@ -729,11 +729,11 @@ + availableWidth -= m_protocols->width(); + } + +- auto MinWidth = [](const KUrlNavigatorButton *button) { +- return button->minimumWidth(); +- }; + // Check whether buttons must be hidden at all... +- const int requiredButtonWidth = std::transform_reduce(m_navButtons.cbegin(), m_navButtons.cend(), 0, std::plus<>(), MinWidth); ++ int requiredButtonWidth = 0; ++ for (const KUrlNavigatorButton *button : std::as_const(m_navButtons)) { ++ requiredButtonWidth += button->minimumWidth(); ++ } + + if (requiredButtonWidth > availableWidth) { + // At least one button must be hidden. This implies that the -- cgit v1.2.3-60-g2f50