diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2018-03-16 13:54:14 -0400 |
---|---|---|
committer | Ben Caimano <ben.caimano@10gen.com> | 2018-03-21 18:01:52 -0400 |
commit | 09d7a4c298d6b65ac2a1d028085df4168aea086d (patch) | |
tree | 00eeeafcf83ac60fdafbdf5e84c88ab807afb32f /src/mongo/logger/syslog_appender.h | |
parent | bbcff548d0c9922f6dc8f23a4dc8bd02ff9f57fc (diff) | |
download | mongo-09d7a4c298d6b65ac2a1d028085df4168aea086d.tar.gz |
SERVER-33758 Make mongo::logger classes use more unique_ptrs
Appenders and LogDomains now use unique ptrs internally and on
signature.
Diffstat (limited to 'src/mongo/logger/syslog_appender.h')
-rw-r--r-- | src/mongo/logger/syslog_appender.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/logger/syslog_appender.h b/src/mongo/logger/syslog_appender.h index ebdba636f5f..63219d740e0 100644 --- a/src/mongo/logger/syslog_appender.h +++ b/src/mongo/logger/syslog_appender.h @@ -50,7 +50,9 @@ class SyslogAppender : public Appender<Event> { public: typedef Encoder<Event> EventEncoder; + // TODO: Remove this ctor once raw pointer use is gone explicit SyslogAppender(EventEncoder* encoder) : _encoder(encoder) {} + explicit SyslogAppender(std::unique_ptr<EventEncoder> encoder) : _encoder(std::move(encoder)) {} virtual Status append(const Event& event) { std::ostringstream os; _encoder->encode(event, os); |