diff --git a/src/beast/beast/utility/impl/Journal.cpp b/src/beast/beast/utility/impl/Journal.cpp index 3efc51b212..e0927dd956 100644 --- a/src/beast/beast/utility/impl/Journal.cpp +++ b/src/beast/beast/utility/impl/Journal.cpp @@ -27,25 +27,25 @@ bool Journal::Sink::active (Severity) return true; } +// A Sink that does nothing. +class NullJournalSink : public Journal::Sink +{ +public: + void write (Journal::Severity, std::string const&) + { + } + + bool active (Journal::Severity) + { + return false; + } +}; + //------------------------------------------------------------------------------ Journal::Sink& Journal::getNullSink () { - // A Sink that does nothing. - class NullSink : public Sink - { - public: - void write (Severity, std::string const&) - { - } - - bool active (Severity) - { - return false; - } - }; - - return *SharedSingleton ::get ( + return *SharedSingleton ::get ( SingletonLifetime::neverDestroyed); }