io: style
This commit is contained in:
parent
b864ffa00b
commit
a73bf29e03
4
io.cpp
4
io.cpp
@ -159,6 +159,7 @@ indenter::overflow (int ch) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
indenter::indenter (std::streambuf* _dest, size_t _indent)
|
indenter::indenter (std::streambuf* _dest, size_t _indent)
|
||||||
: m_dest (_dest)
|
: m_dest (_dest)
|
||||||
, m_line_start (true)
|
, m_line_start (true)
|
||||||
@ -167,6 +168,7 @@ indenter::indenter (std::streambuf* _dest, size_t _indent)
|
|||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
indenter::indenter (std::ostream& _dest, size_t _indent)
|
indenter::indenter (std::ostream& _dest, size_t _indent)
|
||||||
: m_dest (_dest.rdbuf())
|
: m_dest (_dest.rdbuf())
|
||||||
, m_line_start (true)
|
, m_line_start (true)
|
||||||
@ -177,12 +179,14 @@ indenter::indenter (std::ostream& _dest, size_t _indent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
indenter::~indenter ()
|
indenter::~indenter ()
|
||||||
{
|
{
|
||||||
if (m_owner != NULL)
|
if (m_owner != NULL)
|
||||||
m_owner->rdbuf (m_dest);
|
m_owner->rdbuf (m_dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
scoped_cwd::scoped_cwd ()
|
scoped_cwd::scoped_cwd ()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user