forked from qt-creator/qt-creator
TextEditor: add a virtual destructor to TextSuggestion
Change-Id: I30378a5a3367a79eb3b39bc921c409ca0af04119 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -839,4 +839,6 @@ TextSuggestion::TextSuggestion()
|
|||||||
m_replacementDocument.setDocumentMargin(0);
|
m_replacementDocument.setDocumentMargin(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TextSuggestion::~TextSuggestion() = default;
|
||||||
|
|
||||||
} // namespace TextEditor
|
} // namespace TextEditor
|
||||||
|
@@ -46,6 +46,7 @@ class TEXTEDITOR_EXPORT TextSuggestion
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TextSuggestion();
|
TextSuggestion();
|
||||||
|
virtual ~TextSuggestion();
|
||||||
virtual bool apply() = 0;
|
virtual bool apply() = 0;
|
||||||
virtual void reset() = 0;
|
virtual void reset() = 0;
|
||||||
virtual int position() = 0;
|
virtual int position() = 0;
|
||||||
|
Reference in New Issue
Block a user