diff --git a/src/plugins/texteditor/textdocumentlayout.cpp b/src/plugins/texteditor/textdocumentlayout.cpp index c38c75bd5e0..f40290b393d 100644 --- a/src/plugins/texteditor/textdocumentlayout.cpp +++ b/src/plugins/texteditor/textdocumentlayout.cpp @@ -357,7 +357,7 @@ TextSuggestion *TextBlockUserData::suggestion() const void TextBlockUserData::clearSuggestion() { - m_suggestion.release(); + m_suggestion.reset(); } void TextBlockUserData::addMark(TextMark *mark)