Fix valgrind warnings
This commit is contained in:
@@ -16,6 +16,8 @@ ChatDocumentHandler::ChatDocumentHandler(QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_document(nullptr)
|
||||
, m_cursorPosition(-1)
|
||||
, m_selectionStart(-1)
|
||||
, m_selectionEnd(-1)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ SpellcheckHighlighter::SpellcheckHighlighter(QObject *parent)
|
||||
new Sonnet::GuessLanguage()
|
||||
}
|
||||
#endif
|
||||
, m_document(nullptr), m_cursorPosition(-1)
|
||||
, m_document(nullptr), m_cursorPosition(-1), m_selectionStart(-1), m_selectionEnd(-1)
|
||||
{
|
||||
// Danger red from our color scheme
|
||||
mErrorFormat.setForeground(QColor(0xED, 0x15, 0x15));
|
||||
|
||||
Reference in New Issue
Block a user