##// END OF EJS Templates
Adds {} to if blocks
Alexandre Leroux -
r664:451e5bdcb7d6
parent child
Show More
@@ -109,10 +109,10 void PluginManager::loadPlugins(const QDir &pluginDir)
109 auto pluginInfoList
109 auto pluginInfoList
110 = pluginDir.entryInfoList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
110 = pluginDir.entryInfoList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
111 for (auto entryInfo : qAsConst(pluginInfoList)) {
111 for (auto entryInfo : qAsConst(pluginInfoList)) {
112 if (entryInfo.isDir())
112 if (entryInfo.isDir()) {
113 this->loadPlugins(QDir{entryInfo.absoluteFilePath()});
113 this->loadPlugins(QDir{entryInfo.absoluteFilePath()});
114 else {
114 }
115 if (QLibrary::isLibrary(entryInfo.absoluteFilePath()))
115 else if (QLibrary::isLibrary(entryInfo.absoluteFilePath())) {
116 impl->loadPlugin(entryInfo.absoluteFilePath());
116 impl->loadPlugin(entryInfo.absoluteFilePath());
117 }
117 }
118 }
118 }
General Comments 0
You need to be logged in to leave comments. Login now