Commit 9e2fa965 authored by Ilia Kats's avatar Ilia Kats Committed by Christoph Cullmann
Browse files

don't delete the model explicitly

it'll be deleted by the parent QObject automatically
parent cc3274db
......@@ -18,15 +18,10 @@ class LatexCompletionPlugin : public KTextEditor::Plugin
public:
LatexCompletionPlugin(QObject *parent, const QVariantList &)
: KTextEditor::Plugin(parent)
, m_model(new LatexCompletionModel(parent))
, m_model(new LatexCompletionModel(this))
{
}
~LatexCompletionPlugin()
{
delete m_model;
}
QObject *createView(KTextEditor::MainWindow *mainWindow) override
{
for (auto view : mainWindow->views())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment