projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try larger menu bar icon on OS X.
[dcpomatic.git]
/
src
/
lib
/
log.cc
diff --git
a/src/lib/log.cc
b/src/lib/log.cc
index 769852044348cebbbafc37ba66c02656928bb513..e3ffd1cadcc05f4f114e107df4e870d46ce0a3f6 100644
(file)
--- a/
src/lib/log.cc
+++ b/
src/lib/log.cc
@@
-25,9
+25,7
@@
#include "log.h"
#include "cross.h"
#include "config.h"
#include "log.h"
#include "cross.h"
#include "config.h"
-#include "safe_stringstream.h"
#include "string_log_entry.h"
#include "string_log_entry.h"
-#include <boost/make_shared.hpp>
#include <time.h>
#include <cstdio>
#include <time.h>
#include <cstdio>
@@
-36,7
+34,6
@@
using std::string;
using std::cout;
using boost::shared_ptr;
using std::string;
using std::cout;
using boost::shared_ptr;
-using boost::make_shared;
Log::Log ()
: _types (0)
Log::Log ()
: _types (0)
@@
-73,7
+70,7
@@
Log::log (string message, int type)
return;
}
return;
}
- shared_ptr<StringLogEntry> e
= boost::make_shared<StringLogEntry> (type, message
);
+ shared_ptr<StringLogEntry> e
(new StringLogEntry (type, message)
);
do_log (e);
}
do_log (e);
}
@@
-83,13
+80,13
@@
Log::dcp_log (dcp::NoteType type, string m)
{
switch (type) {
case dcp::DCP_PROGRESS:
{
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:
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:
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;
}
}
break;
}
}