From ee713405743369e2df60af7e10450f4e1e1f547d Mon Sep 17 00:00:00 2001 From: Petr Semiletov Date: Sun, 28 Apr 2024 18:41:05 +0300 Subject: [PATCH] -Qt5Compat --- CMakeLists.txt | 10 +++------- src/tea.cpp | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 855b8cf..d13c65f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,13 +216,9 @@ endif() -if (Qt6_FOUND) - -#find_package(Qt6 REQUIRED COMPONENTS TextToSpeech) -#target_link_libraries(tea Qt6::TextToSpeech) -target_link_libraries(tea Qt::Core5Compat) - -endif() +#if (Qt6_FOUND) +#target_link_libraries(tea Qt::Core5Compat) +#endif() target_link_libraries(tea Qt::Widgets Qt::Core) diff --git a/src/tea.cpp b/src/tea.cpp index 9258d8d..f718e57 100644 --- a/src/tea.cpp +++ b/src/tea.cpp @@ -4037,7 +4037,7 @@ void CTEA::fn_math_sum_by_last_col() QStringList lt = l[i].split (" "); if (lt.size() > 0) { - QString s = lt.at (lt.size() - 1); + const QString s = lt.at (lt.size() - 1); if (! s.isNull()) { std::string utf8_text = s.toUtf8().constData();