summaryrefslogtreecommitdiffstats
path: root/src/modules/FileLogger/FileLogger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/FileLogger/FileLogger.cpp')
-rw-r--r--src/modules/FileLogger/FileLogger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/FileLogger/FileLogger.cpp b/src/modules/FileLogger/FileLogger.cpp
index a78ab36..bdae536 100644
--- a/src/modules/FileLogger/FileLogger.cpp
+++ b/src/modules/FileLogger/FileLogger.cpp
@@ -26,7 +26,7 @@ namespace Mad {
namespace Modules {
FileLogger::ConfigHelper FileLogger::configHelper;
-std::set<FileLogger*> FileLogger::loggers;
+std::set<boost::shared_ptr<FileLogger> > FileLogger::loggers;
bool FileLogger::ConfigHelper::handleConfigEntry(const Core::ConfigEntry &entry, bool handled) {
@@ -37,10 +37,10 @@ bool FileLogger::ConfigHelper::handleConfigEntry(const Core::ConfigEntry &entry,
if(entry[0][0].matches("File")) {
if(entry[1].empty()) {
if(!entry[0][1].empty()) {
- FileLogger *logger = new FileLogger(entry[0][1]);
+ boost::shared_ptr<FileLogger> logger(new FileLogger(entry[0][1]));
loggers.insert(logger);
- Core::LogManager::get()->registerLogger(static_cast<Logger*>(logger));
+ Core::LogManager::get()->registerLogger(boost::static_pointer_cast<Logger>(logger));
}
else {
Logger::logf(Logger::WARNING, "FileLogger: no filename given.");