commit 0143223b1257d17057efe3ef68abe8588f98662c
Author: Jakub Bogusz <[email protected]>
Date:   Sat Feb 20 21:12:47 2016 +0100

    - enhanced gcc patch to fix build with gcc 5+

 subtitleeditor-gcc.patch | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
---
diff --git a/subtitleeditor-gcc.patch b/subtitleeditor-gcc.patch
index b92fc9d..01c60a3 100644
--- a/subtitleeditor-gcc.patch
+++ b/subtitleeditor-gcc.patch
@@ -8,3 +8,25 @@
  #include <auto_ptr.h>
  #include "extension/action.h"
  #include "i18n.h"
+--- subtitleeditor-0.52.1/src/utility.h.orig   2015-06-21 23:09:29.000000000 
+0200
++++ subtitleeditor-0.52.1/src/utility.h        2016-02-20 10:47:25.319878426 
+0100
+@@ -91,7 +91,7 @@
+       std::istringstream s(src);
+       // return s >> dest != 0;
+ 
+-      bool state = s >> dest != 0;
++      bool state = !!(s >> dest);
+ 
+       if(!state)
+               se_debug_message(SE_DEBUG_UTILITY, "string:'%s'failed.", 
src.c_str());
+--- subtitleeditor-0.52.1/src/subtitleview.cc.orig     2015-06-21 
23:09:29.000000000 +0200
++++ subtitleeditor-0.52.1/src/subtitleview.cc  2016-02-20 11:24:45.551626891 
+0100
+@@ -1363,7 +1363,7 @@
+       {
+               int num;
+               std::istringstream ss(event->string);
+-              bool is_num = ss >> num != 0; 
++              bool is_num = !!(ss >> num);
+               // Update only if it's different
+               if(is_num != get_enable_search())
+                       set_enable_search(is_num);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/subtitleeditor.git/commitdiff/0143223b1257d17057efe3ef68abe8588f98662c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to