mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
Fix some undefined behaviour
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user