From d109e1dcd0993b024be40f0d0a061027c2902139 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 9 Sep 2023 13:32:44 +0300 Subject: [PATCH] minor cleanup --- include/spdlog/sinks/qt_sinks.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 4931039b..92e53af7 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -164,9 +164,8 @@ protected: const string_view_t str = string_view_t(formatted.data(), formatted.size()); // apply the color to the color range in the formatted message. QString payload; - int color_range_start, color_range_end; - color_range_start = static_cast(msg.color_range_start); - color_range_end = static_cast(msg.color_range_end); + int color_range_start = static_cast(msg.color_range_start); + int color_range_end = static_cast(msg.color_range_end); if (is_utf8_) { payload = QString::fromUtf8(str.data(), static_cast(str.size()));