From c577b54b06e2f106c59fe3aa5ab214265c5a8095 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 12 Feb 2024 22:02:31 +0100 Subject: [PATCH] Fix typos found by codespell (#3011) --- include/spdlog/sinks/qt_sinks.h | 6 +++--- tests/test_file_helper.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/spdlog/sinks/qt_sinks.h b/include/spdlog/sinks/qt_sinks.h index 4147fcac..039eed32 100644 --- a/include/spdlog/sinks/qt_sinks.h +++ b/include/spdlog/sinks/qt_sinks.h @@ -4,7 +4,7 @@ #pragma once // -// Custom sink for QPlainTextEdit or QTextEdit and its childs(QTextBrowser... +// Custom sink for QPlainTextEdit or QTextEdit and its children (QTextBrowser... // etc) Building and using requires Qt library. // // Warning: the qt_sink won't be notified if the target widget is destroyed. @@ -54,7 +54,7 @@ private: std::string meta_method_; }; -// QT color sink to QTextEdit. +// Qt color sink to QTextEdit. // Color location is determined by the sink log pattern like in the rest of spdlog sinks. // Colors can be modified if needed using sink->set_color(level, qtTextCharFormat). // max_lines is the maximum number of lines that the sink will hold before removing the oldest @@ -273,7 +273,7 @@ inline std::shared_ptr qt_logger_st(const std::string &logger_name, QObj return Factory::template create(logger_name, qt_object, meta_method); } -// log to QTextEdit with colorize output +// log to QTextEdit with colorized output template inline std::shared_ptr qt_color_logger_mt(const std::string &logger_name, QTextEdit *qt_text_edit, diff --git a/tests/test_file_helper.cpp b/tests/test_file_helper.cpp index 0d7c4630..26a03b83 100644 --- a/tests/test_file_helper.cpp +++ b/tests/test_file_helper.cpp @@ -141,7 +141,7 @@ TEST_CASE("file_event_handlers", "[file_helper]") { helper.reopen(true); events.clear(); } - // make sure that the file_helper destrcutor calls the close callbacks if needed + // make sure that the file_helper destructor calls the close callbacks if needed REQUIRE(events == std::vector{flags::before_close, flags::after_close}); REQUIRE(file_contents(TEST_FILENAME) == "after_open\nbefore_close\n"); }