From 3f9a162abebd00501a4093a18621878de6805ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-S9HJSOEB=5C=E6=98=8A=E5=A4=A9?= Date: Sat, 2 Mar 2024 11:07:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9c++=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/log.cpp | 2 +- src/common/log.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/log.cpp b/src/common/log.cpp index a8c9c66..cc0815b 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -5,7 +5,7 @@ QString LogInfo::m_currtDate = QString(); QString LogInfo::m_folderPath = QString(); QFile* LogInfo::m_fileLog = NULL; -char* LogInfo::msgHead[] = { +const char* LogInfo::msgHead[] = { "Debug ", "Warning ", "Critical", diff --git a/src/common/log.h b/src/common/log.h index 927cd6f..aabfd86 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -20,7 +20,7 @@ private: static QString m_currtDate; static QString m_folderPath; static QFile* m_fileLog; - static char* msgHead[]; + static const char* msgHead[]; }; #endif // LOG_H \ No newline at end of file