File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ void Logger::init_logging() {
113113 boost::log::core::get ()->add_global_attribute (" TimeStamp" ,
114114 boost::log::attributes::local_clock ());
115115
116- boost::log::formatter fmt =
116+ const boost::log::formatter fmt =
117117 boost::log::expressions::stream
118118 << boost::log::expressions::format_date_time<boost::posix_time::ptime>(
119119 " TimeStamp" , " %Y--%m--%d %H:%M:%S" )
@@ -142,7 +142,7 @@ void Logger::disable_console_logging() {
142142namespace log_detail {
143143
144144boost::string_view trim_filename (const char * file) {
145- boost::string_view result (file);
145+ const boost::string_view result (file);
146146 const std::size_t second_last = result //
147147 .substr (0 , result.find_last_of (' /' ))
148148 .find_last_of (' /' );
You can’t perform that action at this time.
0 commit comments