(endl): Fix bug in last change.
(ends): Make same change as for endl. From-SVN: r34128
This commit is contained in:
parent
3c56b10550
commit
d027507ed8
@ -957,13 +957,14 @@ int istream::_skip_ws()
|
||||
|
||||
ostream& ends(ostream& outs)
|
||||
{
|
||||
outs.put('\0');
|
||||
if (outs.opfx())
|
||||
outs.put('\0');
|
||||
return outs;
|
||||
}
|
||||
|
||||
ostream& endl(ostream& outs)
|
||||
{
|
||||
if (opfx)
|
||||
if (outs.opfx())
|
||||
flush(outs.put('\n'));
|
||||
return outs;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user