From d0077fba25569423f0e753b8b957f88f33696ef5 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Sat, 27 May 2023 00:41:54 +0200 Subject: [PATCH] clang format run 1 --- components/debug/debugging.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/components/debug/debugging.cpp b/components/debug/debugging.cpp index 5401a9dde4..2d3033d0ae 100644 --- a/components/debug/debugging.cpp +++ b/components/debug/debugging.cpp @@ -179,13 +179,11 @@ namespace Debug public: DebugOutputBuffer(std::unique_ptr 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 { if (c != EOF) @@ -212,7 +210,8 @@ namespace Debug public: DebugOutputStream(std::unique_ptr sink) : std::ostream(new DebugOutputBuffer(std::move(sink))) - {} + { + } void open(std::unique_ptr new_sink) { @@ -220,10 +219,7 @@ namespace Debug rdbuf(new DebugOutputBuffer(std::move(new_sink))); } - ~DebugOutputStream() - { - delete rdbuf(); - } + ~DebugOutputStream() { delete rdbuf(); } }; #if defined _WIN32 && defined _DEBUG