Commit daca3450 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2445] constify

parent 0b06fc6c
...@@ -59,7 +59,8 @@ LogBuffer::flush_stdout() { ...@@ -59,7 +59,8 @@ LogBuffer::flush_stdout() {
// So we print a slightly shortened format (it really only excludes // So we print a slightly shortened format (it really only excludes
// the time and the pid) // the time and the pid)
std::vector<log4cplus::spi::InternalLoggingEvent>::const_iterator it; 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) { for (it = stored_.begin(); it != stored_.end(); ++it) {
std::cout << manager.toString(it->getLogLevel()) << " " << std::cout << manager.toString(it->getLogLevel()) << " " <<
"[" << it->getLoggerName() << "] " << "[" << it->getLoggerName() << "] " <<
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment