mirror of
https://github.com/gabime/spdlog.git
synced 2026-04-10 11:34:29 +08:00
clang format
This commit is contained in:
@@ -31,7 +31,7 @@ public:
|
||||
: q_{n_items}
|
||||
{}
|
||||
|
||||
void drain_raw(std::function<void(const details::log_msg_buffer&)> callback)
|
||||
void drain_raw(std::function<void(const details::log_msg_buffer &)> callback)
|
||||
{
|
||||
std::lock_guard<Mutex> lock(base_sink<Mutex>::mutex_);
|
||||
while (!q_.empty())
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
{
|
||||
formatted.clear();
|
||||
base_sink<Mutex>::formatter_->format(q_.front(), formatted);
|
||||
callback(std::string_view (formatted.data(), formatted.size()));
|
||||
callback(std::string_view(formatted.data(), formatted.size()));
|
||||
q_.pop_front();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,9 @@ struct local_alloc_t
|
||||
{
|
||||
HLOCAL hlocal_;
|
||||
|
||||
constexpr local_alloc_t() noexcept : hlocal_(nullptr) {}
|
||||
constexpr local_alloc_t() noexcept
|
||||
: hlocal_(nullptr)
|
||||
{}
|
||||
|
||||
local_alloc_t(local_alloc_t const &) = delete;
|
||||
local_alloc_t &operator=(local_alloc_t const &) = delete;
|
||||
|
||||
Reference in New Issue
Block a user