diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 85114b48..4f41728b 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -25,8 +25,6 @@ template class qt_sink : public base_sink { public: - // Warning: qt_sink won't be notified if the target QObject is destroyed. - // If the object's lifetime can be shorter than the logger's one, you should provide some permanent object and then use a standard signal/slot. qt_sink(QObject *qt_object, const std::string &meta_method) { qt_object_ = qt_object; @@ -57,7 +55,11 @@ private: #include "spdlog/details/null_mutex.h" #include +// Warning: qt_sink won't be notified if the target QObject is destroyed. +// If the object's lifetime can be shorter than the logger's one, you should provide some permanent object and then use a standard signal/slot. using qt_sink_mt = qt_sink; +// Warning: qt_sink won't be notified if the target QObject is destroyed. +// If the object's lifetime can be shorter than the logger's one, you should provide some permanent object and then use a standard signal/slot. using qt_sink_st = qt_sink; } // namespace sinks