Remove undesirable Journal::Stream constructor:

Constructing a Stream from a Sink would elide specifying the
Severity level of the Stream.  That constructor is removed so
if a Stream is constructed from a Sink the Severity must be
specified.
This commit is contained in:
Scott Schurr
2016-06-28 09:57:32 -07:00
committed by seelabs
parent 40678e9a78
commit c4f8b38148

View File

@@ -175,17 +175,12 @@ public:
{
public:
/** Create a stream which produces no output. */
Stream ()
explicit Stream ()
: m_sink (getNullSink())
, m_level (severities::kDisabled)
{ }
Stream (Sink& sink)
: m_sink (sink)
, m_level (sink.threshold())
{ }
/** Create stream that writes at the given level.
/** Create a stream that writes at the given level.
Constructor is inlined so checking active() very inexpensive.
*/