diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-21 23:08:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-21 23:08:53 +0100 |
| commit | a8a0dfd1b21de6c0facf965ab119833ff6f790bf (patch) | |
| tree | 88bd3a7dd6d4ae56a1efa9b7443c341550759869 /src/lib/log.cc | |
| parent | e669b562937786bf5b771c927cc03a4074b01be8 (diff) | |
Revert "Use make_shared<>."
Support for this seems to vary wildly across DoM's build
targets. Stuff that builds on 16.04 won't build on 14.04,
for example. Seems to not be worth the hassle now.
This reverts commit 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f.
Diffstat (limited to 'src/lib/log.cc')
| -rw-r--r-- | src/lib/log.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/log.cc b/src/lib/log.cc index 769852044..b7edd4e29 100644 --- a/src/lib/log.cc +++ b/src/lib/log.cc @@ -27,7 +27,6 @@ #include "config.h" #include "safe_stringstream.h" #include "string_log_entry.h" -#include <boost/make_shared.hpp> #include <time.h> #include <cstdio> @@ -36,7 +35,6 @@ using std::string; using std::cout; using boost::shared_ptr; -using boost::make_shared; Log::Log () : _types (0) @@ -73,7 +71,7 @@ Log::log (string message, int type) return; } - shared_ptr<StringLogEntry> e = boost::make_shared<StringLogEntry> (type, message); + shared_ptr<StringLogEntry> e (new StringLogEntry (type, message)); do_log (e); } @@ -83,13 +81,13 @@ Log::dcp_log (dcp::NoteType type, string m) { switch (type) { case dcp::DCP_PROGRESS: - do_log (boost::make_shared<const StringLogEntry> (LogEntry::TYPE_GENERAL, m)); + do_log (shared_ptr<const LogEntry> (new StringLogEntry (LogEntry::TYPE_GENERAL, m))); break; case dcp::DCP_ERROR: - do_log (boost::make_shared<const StringLogEntry> (LogEntry::TYPE_ERROR, m)); + do_log (shared_ptr<const LogEntry> (new StringLogEntry (LogEntry::TYPE_ERROR, m))); break; case dcp::DCP_NOTE: - do_log (boost::make_shared<const StringLogEntry> (LogEntry::TYPE_WARNING, m)); + do_log (shared_ptr<const LogEntry> (new StringLogEntry (LogEntry::TYPE_WARNING, m))); break; } } |
