Commit 92b7bf5d authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

kdevplastform/documentation: port foreach -> range-based for

parent d2b47ce2
...@@ -373,8 +373,10 @@ void ProvidersModel::unloaded(IPlugin* plugin) ...@@ -373,8 +373,10 @@ void ProvidersModel::unloaded(IPlugin* plugin)
auto* providerProvider = plugin->extension<IDocumentationProviderProvider>(); auto* providerProvider = plugin->extension<IDocumentationProviderProvider>();
if (providerProvider) { if (providerProvider) {
foreach(IDocumentationProvider* provider, providerProvider->providers()) const auto providers = providerProvider->providers();
for (IDocumentationProvider* provider : providers) {
removeProvider(provider); removeProvider(provider);
}
} }
} }
...@@ -384,8 +386,10 @@ void ProvidersModel::loaded(IPlugin* plugin) ...@@ -384,8 +386,10 @@ void ProvidersModel::loaded(IPlugin* plugin)
auto* providerProvider = plugin->extension<IDocumentationProviderProvider>(); auto* providerProvider = plugin->extension<IDocumentationProviderProvider>();
if (providerProvider) { if (providerProvider) {
foreach(IDocumentationProvider* provider, providerProvider->providers()) const auto providers = providerProvider->providers();
for (IDocumentationProvider* provider : providers) {
addProvider(provider); addProvider(provider);
}
} }
} }
......
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