From df4df171ddec218bc492a61fb604bd067d994ad2 Mon Sep 17 00:00:00 2001 From: Tom Z Date: Mon, 23 Aug 2021 22:50:03 +0200 Subject: [PATCH] Fix valgrind warnings --- src/chatdocumenthandler.cpp | 2 ++ src/spellcheckhighlighter.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chatdocumenthandler.cpp b/src/chatdocumenthandler.cpp index 8d489984a..c9a64533a 100644 --- a/src/chatdocumenthandler.cpp +++ b/src/chatdocumenthandler.cpp @@ -16,6 +16,8 @@ ChatDocumentHandler::ChatDocumentHandler(QObject *parent) : QObject(parent) , m_document(nullptr) , m_cursorPosition(-1) + , m_selectionStart(-1) + , m_selectionEnd(-1) { } diff --git a/src/spellcheckhighlighter.cpp b/src/spellcheckhighlighter.cpp index ea5c9e398..32ef4a7e1 100644 --- a/src/spellcheckhighlighter.cpp +++ b/src/spellcheckhighlighter.cpp @@ -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));