From b81a6e01dc7ef88cc506bb9da9022692d863a92a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 7 Jul 2003 03:46:28 +0000 Subject: [PATCH] (operator<<(std::ostream&, const Position&)): use s.empty() rather than s == "" to test for empty string; see (trivial change) --- data/lalr1.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2