]> git.pld-linux.org Git - packages/subtitleeditor.git/blob - subtitleeditor-gcc.patch
01c60a35dc59adfc28c1a6692baa6662986e1149
[packages/subtitleeditor.git] / subtitleeditor-gcc.patch
1 --- subtitleeditor-0.52.1/plugins/actions/dialoguize/dialoguize.cc.orig 2015-06-21 23:09:31.000000000 +0200
2 +++ subtitleeditor-0.52.1/plugins/actions/dialoguize/dialoguize.cc      2016-02-19 22:27:48.430323938 +0100
3 @@ -23,6 +23,7 @@
4   *     along with this program. If not, see <http://www.gnu.org/licenses/>.
5   */
6   
7 +#include <memory>
8  #include <auto_ptr.h>
9  #include "extension/action.h"
10  #include "i18n.h"
11 --- subtitleeditor-0.52.1/src/utility.h.orig    2015-06-21 23:09:29.000000000 +0200
12 +++ subtitleeditor-0.52.1/src/utility.h 2016-02-20 10:47:25.319878426 +0100
13 @@ -91,7 +91,7 @@
14         std::istringstream s(src);
15         // return s >> dest != 0;
16  
17 -       bool state = s >> dest != 0;
18 +       bool state = !!(s >> dest);
19  
20         if(!state)
21                 se_debug_message(SE_DEBUG_UTILITY, "string:'%s'failed.", src.c_str());
22 --- subtitleeditor-0.52.1/src/subtitleview.cc.orig      2015-06-21 23:09:29.000000000 +0200
23 +++ subtitleeditor-0.52.1/src/subtitleview.cc   2016-02-20 11:24:45.551626891 +0100
24 @@ -1363,7 +1363,7 @@
25         {
26                 int num;
27                 std::istringstream ss(event->string);
28 -               bool is_num = ss >> num != 0; 
29 +               bool is_num = !!(ss >> num);
30                 // Update only if it's different
31                 if(is_num != get_enable_search())
32                         set_enable_search(is_num);
This page took 0.0334 seconds and 2 git commands to generate.