mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
(operator<<(std::ostream&, const Position&)):
use s.empty() rather than s == "" to test for empty string; see <http://mail.gnu.org/archive/html/bison-patches/2003-07/msg00003.html> (trivial change)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user