summaryrefslogtreecommitdiffstats
path: root/tools/designer/src/lib/shared/plugindialog.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-28 15:58:25 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-28 15:58:25 (GMT)
commit7d66d263b93164ddc501050d07ddcc198921da8c (patch)
tree7f62f894cd301b99fc312a195749ba12f87b3401 /tools/designer/src/lib/shared/plugindialog.cpp
parent2a82051815a3c8bb8fbb2b58dff5653c80d6fa33 (diff)
downloadQt-7d66d263b93164ddc501050d07ddcc198921da8c.zip
Qt-7d66d263b93164ddc501050d07ddcc198921da8c.tar.gz
Qt-7d66d263b93164ddc501050d07ddcc198921da8c.tar.bz2
Designer: Fix source code scanning issues.
Fix spelling errors, foreach()/QString usage, explicit constructors. Reviewed-By: Joerg Bornemann <joerg.bornemann@trolltech.com>
Diffstat (limited to 'tools/designer/src/lib/shared/plugindialog.cpp')
-rw-r--r--tools/designer/src/lib/shared/plugindialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/designer/src/lib/shared/plugindialog.cpp b/tools/designer/src/lib/shared/plugindialog.cpp
index c79dcf2..3e88043 100644
--- a/tools/designer/src/lib/shared/plugindialog.cpp
+++ b/tools/designer/src/lib/shared/plugindialog.cpp
@@ -105,7 +105,7 @@ void PluginDialog::populateTreeWidget()
QTreeWidgetItem *topLevelItem = setTopLevelItem(QLatin1String("Loaded Plugins"));
QFont boldFont = topLevelItem->font(0);
- foreach (QString fileName, fileNames) {
+ foreach (const QString &fileName, fileNames) {
QPluginLoader loader(fileName);
const QFileInfo fileInfo(fileName);
@@ -127,7 +127,7 @@ void PluginDialog::populateTreeWidget()
if (!notLoadedPlugins.isEmpty()) {
QTreeWidgetItem *topLevelItem = setTopLevelItem(QLatin1String("Failed Plugins"));
const QFont boldFont = topLevelItem->font(0);
- foreach (const QString plugin, notLoadedPlugins) {
+ foreach (const QString &plugin, notLoadedPlugins) {
const QString failureReason = pluginManager->failureReason(plugin);
QTreeWidgetItem *pluginItem = setPluginItem(topLevelItem, plugin, boldFont);
setItem(pluginItem, failureReason, failureReason, QString(), QIcon());