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