mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix nonstandard C++ extension in getNullSink
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user