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,9 +729,15 @@ public:
|
||||
|
||||
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class ch_formatter final : public flag_formatter
|
||||
|
Loading…
Reference in New Issue
Block a user