Fix nonstandard C++ extension in getNullSink

This commit is contained in:
Vinnie Falco
2013-09-27 05:18:34 -07:00
parent ae6e9e2790
commit beebfec3db

View File

@@ -27,25 +27,25 @@ bool Journal::Sink::active (Severity)
return true; return true;
} }
//------------------------------------------------------------------------------
Journal::Sink& Journal::getNullSink ()
{
// A Sink that does nothing. // A Sink that does nothing.
class NullSink : public Sink class NullJournalSink : public Journal::Sink
{ {
public: public:
void write (Severity, std::string const&) void write (Journal::Severity, std::string const&)
{ {
} }
bool active (Severity) bool active (Journal::Severity)
{ {
return false; return false;
} }
}; };
return *SharedSingleton <NullSink>::get ( //------------------------------------------------------------------------------
Journal::Sink& Journal::getNullSink ()
{
return *SharedSingleton <NullJournalSink>::get (
SingletonLifetime::neverDestroyed); SingletonLifetime::neverDestroyed);
} }