summaryrefslogtreecommitdiff
path: root/ham/fldigi/patches/patch-src_navtex_navtex.cxx
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-07-05 21:34:11 +0000
committerjoerg <joerg@pkgsrc.org>2013-07-05 21:34:11 +0000
commit486f32091897c137e19f9ff386bdf099ae345803 (patch)
treeefd58fc900b1dbc2e384909a98330d95e4dffd3b /ham/fldigi/patches/patch-src_navtex_navtex.cxx
parent69401bf8e7a28d6bfea5f759f60dd9e73546166a (diff)
downloadpkgsrc-486f32091897c137e19f9ff386bdf099ae345803.tar.gz
operator bool doesn't equal good(), but !bad(). This makes a difference
when it comes to handling EOF. Adjust.
Diffstat (limited to 'ham/fldigi/patches/patch-src_navtex_navtex.cxx')
-rw-r--r--ham/fldigi/patches/patch-src_navtex_navtex.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/ham/fldigi/patches/patch-src_navtex_navtex.cxx b/ham/fldigi/patches/patch-src_navtex_navtex.cxx
index 34d1b7fe78d..c36e044c7a7 100644
--- a/ham/fldigi/patches/patch-src_navtex_navtex.cxx
+++ b/ham/fldigi/patches/patch-src_navtex_navtex.cxx
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_navtex_navtex.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
+$NetBSD: patch-src_navtex_navtex.cxx,v 1.2 2013/07/05 21:34:12 joerg Exp $
--- src/navtex/navtex.cxx.orig 2013-05-03 14:31:34.000000000 +0000
+++ src/navtex/navtex.cxx
@@ -7,13 +7,13 @@ $NetBSD: patch-src_navtex_navtex.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $
std::stringstream sstrm( parsed_str );
sstrm >> ref ;
- return sstrm ;
-+ return sstrm.good();
++ return !sstrm.bad();
}
static bool read_until_delim( std::istream & istrm, std::string & ref )
{
- return std::getline( istrm, ref, delim );
-+ return std::getline( istrm, ref, delim ).good();
++ return !std::getline( istrm, ref, delim ).bad();
}
class NavtexRecord