mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +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&
|
inline std::ostream&
|
||||||
operator<< (std::ostream& ostr, const Position& pos)
|
operator<< (std::ostream& ostr, const Position& pos)
|
||||||
{
|
{
|
||||||
if (pos.filename != "")
|
if (!pos.filename.empty ())
|
||||||
ostr << pos.filename << ':';
|
ostr << pos.filename << ':';
|
||||||
return ostr << pos.line << '.' << pos.column;
|
return ostr << pos.line << '.' << pos.column;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user