Fix valgrind warnings

This commit is contained in:
Tom Z
2021-08-23 22:50:03 +02:00
parent 61202dcd5f
commit df4df171dd
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ ChatDocumentHandler::ChatDocumentHandler(QObject *parent)
: QObject(parent)
, m_document(nullptr)
, m_cursorPosition(-1)
, m_selectionStart(-1)
, m_selectionEnd(-1)
{
}

View File

@@ -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));