mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-14 05:43:06 +00:00
clang format run 1
This commit is contained in:
parent
31e90fb478
commit
d0077fba25
1 changed files with 5 additions and 9 deletions
|
|
@ -179,13 +179,11 @@ namespace Debug
|
||||||
public:
|
public:
|
||||||
DebugOutputBuffer(std::unique_ptr<DebugOutputBase> sink)
|
DebugOutputBuffer(std::unique_ptr<DebugOutputBase> sink)
|
||||||
: m_sink(std::move(sink))
|
: m_sink(std::move(sink))
|
||||||
{}
|
|
||||||
|
|
||||||
std::streamsize xsputn(const char* s, std::streamsize n) override
|
|
||||||
{
|
{
|
||||||
return m_sink->write(s, n);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::streamsize xsputn(const char* s, std::streamsize n) override { return m_sink->write(s, n); }
|
||||||
|
|
||||||
int overflow(int c = EOF) override
|
int overflow(int c = EOF) override
|
||||||
{
|
{
|
||||||
if (c != EOF)
|
if (c != EOF)
|
||||||
|
|
@ -212,7 +210,8 @@ namespace Debug
|
||||||
public:
|
public:
|
||||||
DebugOutputStream(std::unique_ptr<DebugOutputBase> sink)
|
DebugOutputStream(std::unique_ptr<DebugOutputBase> sink)
|
||||||
: std::ostream(new DebugOutputBuffer(std::move(sink)))
|
: std::ostream(new DebugOutputBuffer(std::move(sink)))
|
||||||
{}
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void open(std::unique_ptr<DebugOutputBase> new_sink)
|
void open(std::unique_ptr<DebugOutputBase> new_sink)
|
||||||
{
|
{
|
||||||
|
|
@ -220,10 +219,7 @@ namespace Debug
|
||||||
rdbuf(new DebugOutputBuffer(std::move(new_sink)));
|
rdbuf(new DebugOutputBuffer(std::move(new_sink)));
|
||||||
}
|
}
|
||||||
|
|
||||||
~DebugOutputStream()
|
~DebugOutputStream() { delete rdbuf(); }
|
||||||
{
|
|
||||||
delete rdbuf();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined _WIN32 && defined _DEBUG
|
#if defined _WIN32 && defined _DEBUG
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue