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) {