Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > 2ded7ec278d152d7b4967d85541039d1 > files > 1

asc-2.6.1.0-20.mga8.src.rpm

From 239fba9fe3336556a0d1c6e6525f687d186308b6 Mon Sep 17 00:00:00 2001
From: Martin Bickel <martin@asc-hq.org>
Date: Sat, 12 Oct 2019 19:45:15 +0200
Subject: [PATCH] Apply patch for GCC-10 compatibility.

Thanks to RedHat compiler team for the patch.
---
 source/libs/paragui/src/widgets/pgbutton.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/source/libs/paragui/src/widgets/pgbutton.cpp b/source/libs/paragui/src/widgets/pgbutton.cpp
index d5d263558..89ee53259 100644
--- a/source/libs/paragui/src/widgets/pgbutton.cpp
+++ b/source/libs/paragui/src/widgets/pgbutton.cpp
@@ -102,31 +102,31 @@ void PG_Button::LoadThemeStyle(const std::string& widgettype, const std::string&
 	SetFontColor(fontcolor);
 
 	switch (GetID()) {
-		case OK:
+		case int(OK):
 			SetIcon(t->FindSurface(widgettype, objectname, "ok_icon"));
 			break;
 
-		case YES:
+		case int(YES):
 			SetIcon(t->FindSurface(widgettype, objectname, "yes_icon"));
 			break;
 
-		case NO:
+		case int(NO):
 			SetIcon(t->FindSurface(widgettype, objectname, "no_icon"));
 			break;
 
-		case APPLY:
+		case int(APPLY):
 			SetIcon(t->FindSurface(widgettype, objectname, "apply_icon"));
 			break;
 
-		case CANCEL:
+		case int (CANCEL):
 			SetIcon(t->FindSurface(widgettype, objectname, "cancel_icon"));
 			break;
 
-		case CLOSE:
+		case int (CLOSE):
 			SetIcon(t->FindSurface(widgettype, objectname, "close_icon"));
 			break;
 
-		case HELP:
+		case int (HELP):
 			SetIcon(t->FindSurface(widgettype, objectname, "help_icon"));
 			break;