Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
9e2fa965
Commit
9e2fa965
authored
Sep 07, 2021
by
Ilia Kats
Committed by
Christoph Cullmann
Sep 11, 2021
Browse files
don't delete the model explicitly
it'll be deleted by the parent QObject automatically
parent
cc3274db
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/latexunicodecompletion/latexcompletionplugin.cpp
View file @
9e2fa965
...
...
@@ -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
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment