From: Paul Eggert Date: Mon, 7 Jul 2003 03:46:28 +0000 (+0000) Subject: (operator<<(std::ostream&, const Position&)): X-Git-Tag: BISON-2_0~231 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/b81a6e01dc7ef88cc506bb9da9022692d863a92a?ds=sidebyside (operator<<(std::ostream&, const Position&)): use s.empty() rather than s == "" to test for empty string; see (trivial change) --- diff --git a/data/lalr1.cc b/data/lalr1.cc index 0e33541e..1ec45264 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -1019,7 +1019,7 @@ namespace yy inline std::ostream& operator<< (std::ostream& ostr, const Position& pos) { - if (pos.filename != "") + if (!pos.filename.empty ()) ostr << pos.filename << ':'; return ostr << pos.line << '.' << pos.column; }