From 4fb817aeaac24821c9a25521658cfb27c8f46e39 Mon Sep 17 00:00:00 2001 From: tanyulong2021 Date: Tue, 2 Nov 2021 11:41:51 +0800 Subject: [PATCH] Fix return type errors --- 0002-Fix-return-type-errors.patch | 32 +++++++++++++++++++++++++++++++ qt5-ukui-platformtheme.spec | 7 ++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0002-Fix-return-type-errors.patch diff --git a/0002-Fix-return-type-errors.patch b/0002-Fix-return-type-errors.patch new file mode 100644 index 0000000..dda0c85 --- /dev/null +++ b/0002-Fix-return-type-errors.patch @@ -0,0 +1,32 @@ +From 63efc3ee8bb71fc840a0a33bb708a548fdb88ad4 Mon Sep 17 00:00:00 2001 +From: tanyulong +Date: Tue, 2 Nov 2021 11:37:02 +0800 +Subject: [PATCH] Fix return type errors + +--- + libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp b/libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp +index bbe5562..81ac373 100755 +--- a/libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp ++++ b/libqt5-ukui-style/gestures/ukui-two-finger-slide-gesture.cpp +@@ -46,6 +46,7 @@ int TwoFingerSlideGesture::delta() + case Invalid: + return 0; + } ++ return 0; + } + + int TwoFingerSlideGesture::totalDelta() +@@ -58,6 +59,7 @@ int TwoFingerSlideGesture::totalDelta() + case Invalid: + return 0; + } ++ return 0; + } + + TwoFingerSlideGestureRecognizer::TwoFingerSlideGestureRecognizer() : QGestureRecognizer() +-- +2.30.0 + diff --git a/qt5-ukui-platformtheme.spec b/qt5-ukui-platformtheme.spec index f3d5307..e6392f2 100644 --- a/qt5-ukui-platformtheme.spec +++ b/qt5-ukui-platformtheme.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: qt5-ukui-platformtheme Version: 1.0.5 -Release: 2 +Release: 3 Summary: Qt5 QPA platform theme of UKUI License: LGPL-3.0+ GPL-3.0+ URL: http://www.ukui.org @@ -22,6 +22,7 @@ Requires: libqt5-ukui-style1 Requires: qt5-styles-ukui patch0: 0001-change-libqt5-ukui-style-Requires-Qt5Widgets-Version.patch +patch1: 0002-Fix-return-type-errors.patch %description qt5-ukui-platformtheme is official platform theme of UKUI desktop @@ -83,6 +84,7 @@ Provides: libqt5-ukui-style %prep %setup -q %patch0 -p1 +%patch1 -p1 %build mkdir build && cd build @@ -126,6 +128,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.so %changelog +* Tue Nov 02 2021 tanyulong - 1.0.5-3 +- add patch1: 0002-Fix-return-type-errors.patch + * Thu Oct 21 2021 douyan - 1.0.5-2 - add patch0: 0001-change-libqt5-ukui-style-Requires-Qt5Widgets-Version.patch