Fix: VS 2015 logmessage.cpp(167): error C2437: "_file" already initialized (#277)

This commit is contained in:
ccvca 2018-07-13 13:59:11 +02:00 committed by Kjell Hedström
parent 3c9a590a76
commit 39526ce9d2

View File

@ -157,9 +157,10 @@ namespace g3 {
: _logDetailsToStringFunc(LogMessage::DefaultLogDetailsToString)
, _timestamp(std::chrono::high_resolution_clock::now())
, _call_thread_id(std::this_thread::get_id())
, _file(LogMessage::splitFileName(file))
#if defined(G3_LOG_FULL_FILENAME)
, _file(file)
#else
, _file(LogMessage::splitFileName(file))
#endif
, _file_path(file)
, _line(line)