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