Fix some undefined behaviour
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
1a375dc243
commit
bf1084d7fa
4 changed files with 18 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue