From aa8bb18550c0bc8dcd982b5f46d89dc8e18039ec Mon Sep 17 00:00:00 2001 From: impressionyang Date: Wed, 13 May 2026 17:57:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Qt=205.12=20?= =?UTF-8?q?=E4=B8=AD=20Qt::endl=20=E5=85=BC=E5=AE=B9=E6=80=A7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Qt::endl 不是 Qt 命名空间成员,改用 '\n' Co-Authored-By: Claude Opus 4.6 --- src/utils/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/logger.cpp b/src/utils/logger.cpp index 60e5d08..83f1e5e 100644 --- a/src/utils/logger.cpp +++ b/src/utils/logger.cpp @@ -119,7 +119,7 @@ void Logger::writeToFile(const QString& line) { if (logFile_ && logFile_->isOpen()) { QTextStream stream(logFile_); stream.setCodec("UTF-8"); - stream << line << Qt::endl; + stream << line << '\n'; logFile_->flush(); } }