summaryrefslogtreecommitdiff
path: root/src/lib/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/log.cc')
-rw-r--r--src/lib/log.cc10
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;
}
}