X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Flog.cc;h=e3ffd1cadcc05f4f114e107df4e870d46ce0a3f6;hb=ad1ef39eda58b3a919ea3b7084401a0439409ec6;hp=769852044348cebbbafc37ba66c02656928bb513;hpb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;p=dcpomatic.git diff --git a/src/lib/log.cc b/src/lib/log.cc index 769852044..e3ffd1cad 100644 --- a/src/lib/log.cc +++ b/src/lib/log.cc @@ -25,9 +25,7 @@ #include "log.h" #include "cross.h" #include "config.h" -#include "safe_stringstream.h" #include "string_log_entry.h" -#include #include #include @@ -36,7 +34,6 @@ using std::string; using std::cout; using boost::shared_ptr; -using boost::make_shared; Log::Log () : _types (0) @@ -73,7 +70,7 @@ Log::log (string message, int type) return; } - shared_ptr e = boost::make_shared (type, message); + shared_ptr e (new StringLogEntry (type, message)); do_log (e); } @@ -83,13 +80,13 @@ Log::dcp_log (dcp::NoteType type, string m) { switch (type) { case dcp::DCP_PROGRESS: - do_log (boost::make_shared (LogEntry::TYPE_GENERAL, m)); + do_log (shared_ptr (new StringLogEntry (LogEntry::TYPE_GENERAL, m))); break; case dcp::DCP_ERROR: - do_log (boost::make_shared (LogEntry::TYPE_ERROR, m)); + do_log (shared_ptr (new StringLogEntry (LogEntry::TYPE_ERROR, m))); break; case dcp::DCP_NOTE: - do_log (boost::make_shared (LogEntry::TYPE_WARNING, m)); + do_log (shared_ptr (new StringLogEntry (LogEntry::TYPE_WARNING, m))); break; } }