Browse Source

[2445] constify

JINMEI Tatuya 12 years ago
parent
commit
daca34509f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/log/log_buffer.cc

+ 2 - 1
src/lib/log/log_buffer.cc

@@ -59,7 +59,8 @@ LogBuffer::flush_stdout() {
     // So we print a slightly shortened format (it really only excludes
     // the time and the pid)
     std::vector<log4cplus::spi::InternalLoggingEvent>::const_iterator it;
-    log4cplus::LogLevelManager& manager = log4cplus::getLogLevelManager();
+    const log4cplus::LogLevelManager& manager =
+        log4cplus::getLogLevelManager();
     for (it = stored_.begin(); it != stored_.end(); ++it) {
         std::cout << manager.toString(it->getLogLevel()) << " " <<
                      "[" << it->getLoggerName() << "] " <<