From 230cad163da0b251e38134fcf94e5118e60b94b1 Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 6 Jun 2023 20:23:37 +0300 Subject: [PATCH] Fixed qt_sink --- include/spdlog/sinks/qt_sinks.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index feef302e..d61c6bec 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -59,7 +59,6 @@ private: #include "spdlog/details/null_mutex.h" #include - using qt_sink_mt = qt_sink; using qt_sink_st = qt_sink; } // namespace sinks @@ -76,7 +75,9 @@ inline std::shared_ptr qt_logger_mt(const std::string &logger_name, QTex template inline std::shared_ptr qt_logger_st(const std::string &logger_name, QTextEdit *qt_object, const std::string &meta_method = "append") { - return Factory::template create(logger_name, qt_object, meta_ + return Factory::template create(logger_name, qt_object, meta_method); +} + template inline std::shared_ptr qt_logger_mt( const std::string &logger_name, QPlainTextEdit *qt_object, const std::string &meta_method = "appendPlainText") @@ -94,7 +95,9 @@ inline std::shared_ptr qt_logger_st( template inline std::shared_ptr qt_logger_mt(const std::string &logger_name, QObject *qt_object, const std::string &meta_method) { - return Factory::template create(logger_name, qt_object, meta_ + return Factory::template create(logger_name, qt_object, meta_method); +} + template inline std::shared_ptr qt_logger_st(const std::string &logger_name, QObject *qt_object, const std::string &meta_method) {