freebsd-ports/multimedia/subtitleeditor/files/patch-src_subtitleview.cc
Thomas Zander c399aff937 Fix build after dependencies enforce C++11
MFH:		2017Q2 (build fix blanket)
2017-04-22 14:44:11 +00:00

11 lines
382 B
C++

--- src/subtitleview.cc.orig 2014-02-12 22:02:59 UTC
+++ src/subtitleview.cc
@@ -1370,7 +1370,7 @@ bool SubtitleView::on_key_press_event(Gd
{
int num;
std::istringstream ss(event->string);
- bool is_num = ss >> num != 0;
+ bool is_num = static_cast<bool>(ss >> num);
// Update only if it's different
if(is_num != get_enable_search())
set_enable_search(is_num);