opnsense-ports/multimedia/subtitleeditor/files/patch-src_utility.h
Franco Fichtner 9a2c491264 */*: sync with upstream
Taken from: FreeBSD
2017-04-24 06:54:48 +02:00

20 lines
631 B
C++

--- src/utility.h.orig 2014-02-12 22:03:00 UTC
+++ src/utility.h
@@ -72,7 +72,7 @@ bool from_string(const std::string &src,
std::istringstream s(src);
// return s >> dest != 0;
- bool state = s >> dest != 0;
+ bool state = static_cast<bool>(s >> dest);
if(!state)
se_debug_message(SE_DEBUG_UTILITY, "string:'%s'failed.", src.c_str());
@@ -92,7 +92,7 @@ bool from_string(const Glib::ustring &sr
std::istringstream s(src);
// return s >> dest != 0;
- bool state = s >> dest != 0;
+ bool state = static_cast<bool>(s >> dest);
if(!state)
se_debug_message(SE_DEBUG_UTILITY, "string:'%s'failed.", src.c_str());