From 54d402e094bce2cb41c2e71c7539c103d98f0ef1 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 28 Jul 2023 18:45:31 +0300 Subject: [PATCH] Fixed tidy warning --- include/spdlog/logger.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 58f85878..fabed0b6 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -48,8 +48,7 @@ class SPDLOG_API logger public: // Empty logger explicit logger(std::string name) - : name_(std::move(name)) - , sinks_() + : name_(std::move(name)) {} // Logger with range on sinks @@ -227,7 +226,7 @@ public: // sinks [[nodiscard]] const std::vector &sinks() const; - std::vector &sinks(); + [[nodiscard]] std::vector &sinks(); // error handler void set_error_handler(err_handler);