mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Minor optimization
This commit is contained in:
parent
0a8cce6984
commit
70d03fd9c3
@ -729,8 +729,14 @@ public:
|
||||
|
||||
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
|
||||
{
|
||||
scoped_pad p(msg.payload, padinfo_, dest);
|
||||
fmt_helper::append_string_view(msg.payload, dest);
|
||||
if(padinfo_.width_) {
|
||||
scoped_pad p(msg.payload, padinfo_, dest);
|
||||
fmt_helper::append_string_view(msg.payload, dest);
|
||||
}
|
||||
else
|
||||
{
|
||||
fmt_helper::append_string_view(msg.payload, dest);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user