Micro optimize: don't init log_msg.msg_id on construction. It will be set anyway later

This commit is contained in:
gabime
2018-10-06 01:49:34 +03:00
parent aa47ac85c9
commit 1b8bf35acc
2 changed files with 3 additions and 3 deletions

View File

@@ -714,11 +714,11 @@ private:
case ('P'):
formatters_.push_back(details::make_unique<details::pid_formatter>());
break;
#ifdef SPDLOG_ENABLE_MESSAGE_COUNTER
case ('i'):
formatters_.push_back(details::make_unique<details::i_formatter>());
break;
#endif
case ('^'):
formatters_.push_back(details::make_unique<details::color_start_formatter>());
break;