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
bd11711a
Commit
bd11711a
authored
Sep 25, 2022
by
Christoph Cullmann
🍨
Browse files
avoid double lookup
parent
b30e095f
Pipeline
#236761
canceled with stage
in 4 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/katepluginmanager.cpp
View file @
bd11711a
...
...
@@ -301,17 +301,8 @@ void KatePluginManager::disablePluginGUI(KatePluginInfo *item)
KTextEditor
::
Plugin
*
KatePluginManager
::
plugin
(
const
QString
&
name
)
{
/**
* name known?
*/
if
(
!
m_name2Plugin
.
contains
(
name
))
{
return
nullptr
;
}
/**
* real plugin instance, if any ;)
*/
return
m_name2Plugin
.
value
(
name
)
->
plugin
;
const
auto
it
=
m_name2Plugin
.
find
(
name
);
return
(
it
==
m_name2Plugin
.
end
())
?
nullptr
:
it
.
value
()
->
plugin
;
}
bool
KatePluginManager
::
pluginAvailable
(
const
QString
&
name
)
...
...
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