summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/pluginmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/pluginmanager.cpp')
-rw-r--r--src/designer/src/lib/shared/pluginmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/pluginmanager.cpp b/src/designer/src/lib/shared/pluginmanager.cpp
index ddc8cd611..88b581862 100644
--- a/src/designer/src/lib/shared/pluginmanager.cpp
+++ b/src/designer/src/lib/shared/pluginmanager.cpp
@@ -544,7 +544,7 @@ void QDesignerPluginManagerPrivate::addCustomWidgets(const QObject *o,
return;
}
if (const QDesignerCustomWidgetCollectionInterface *coll = qobject_cast<QDesignerCustomWidgetCollectionInterface*>(o)) {
- const QList<QDesignerCustomWidgetInterface *> &collCustomWidgets = coll->customWidgets();
+ const auto &collCustomWidgets = coll->customWidgets();
for (QDesignerCustomWidgetInterface *c : collCustomWidgets)
addCustomWidget(c, pluginPath, designerLanguage);
}
@@ -589,7 +589,7 @@ QStringList QDesignerPluginManager::findPlugins(const QString &path)
return QStringList();
const QFileInfoList infoList = dir.entryInfoList(QDir::Files);
- if (infoList.empty())
+ if (infoList.isEmpty())
return QStringList();
// Load symbolic links but make sure all file names are unique as not
@@ -738,7 +738,7 @@ void QDesignerPluginManager::ensureInitialized()
m_d->clearCustomWidgets();
// Add the static custom widgets
const QObjectList staticPluginObjects = QPluginLoader::staticInstances();
- if (!staticPluginObjects.empty()) {
+ if (!staticPluginObjects.isEmpty()) {
const QString staticPluginPath = QCoreApplication::applicationFilePath();
for (QObject *o : staticPluginObjects)
m_d->addCustomWidgets(o, staticPluginPath, designerLanguage);