Skip to content
GitLab
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
be881677
Commit
be881677
authored
Oct 27, 2022
by
Christoph Cullmann
🍨
Browse files
no need for QPointer, we deregister this in destructor
parent
dc05cbd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/lib/katemdi.cpp
View file @
be881677
...
...
@@ -1361,7 +1361,8 @@ ToolView *MainWindow::createToolView(KTextEditor::Plugin *plugin,
const
QIcon
&
icon
,
const
QString
&
text
)
{
if
(
m_idToWidget
[
identifier
])
{
// clashing names are not allowed
if
(
toolView
(
identifier
))
{
return
nullptr
;
}
...
...
apps/lib/katemdi.h
View file @
be881677
...
...
@@ -590,12 +590,12 @@ private:
/**
* map identifiers to widgets
*/
std
::
map
<
QString
,
QPointer
<
ToolView
>
>
m_idToWidget
;
std
::
map
<
QString
,
ToolView
*
>
m_idToWidget
;
/**
* list of all toolviews around
*/
std
::
vector
<
QPointer
<
ToolView
>
>
m_toolviews
;
std
::
vector
<
ToolView
*
>
m_toolviews
;
/**
* widget, which is the central part of the
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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