Fix some undefined behaviour

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2025-02-11 10:59:10 +02:00
parent 1a375dc243
commit bf1084d7fa
4 changed files with 18 additions and 18 deletions

View File

@ -32,12 +32,12 @@ class LogModel : public QAbstractListModel {
private /* types */:
struct entry {
MessageLevel::Enum level;
QString line;
MessageLevel::Enum level = MessageLevel::Enum::Unknown;
QString line = {};
};
private: /* data */
QVector<entry> m_content;
QVector<entry> m_content = {};
int m_maxLines = 1000;
// first line in the circular buffer
int m_firstLine = 0;