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
Thomas Schöps
kdevelop
Commits
92b7bf5d
Commit
92b7bf5d
authored
Jun 26, 2019
by
Friedrich W. H. Kossebau
Browse files
kdevplastform/documentation: port foreach -> range-based for
parent
d2b47ce2
Changes
1
Hide whitespace changes
Inline
Side-by-side
kdevplatform/documentation/documentationview.cpp
View file @
92b7bf5d
...
...
@@ -373,8 +373,10 @@ void ProvidersModel::unloaded(IPlugin* plugin)
auto
*
providerProvider
=
plugin
->
extension
<
IDocumentationProviderProvider
>
();
if
(
providerProvider
)
{
foreach
(
IDocumentationProvider
*
provider
,
providerProvider
->
providers
())
const
auto
providers
=
providerProvider
->
providers
();
for
(
IDocumentationProvider
*
provider
:
providers
)
{
removeProvider
(
provider
);
}
}
}
...
...
@@ -384,8 +386,10 @@ void ProvidersModel::loaded(IPlugin* plugin)
auto
*
providerProvider
=
plugin
->
extension
<
IDocumentationProviderProvider
>
();
if
(
providerProvider
)
{
foreach
(
IDocumentationProvider
*
provider
,
providerProvider
->
providers
())
const
auto
providers
=
providerProvider
->
providers
();
for
(
IDocumentationProvider
*
provider
:
providers
)
{
addProvider
(
provider
);
}
}
}
...
...
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