From 1dfab488e0ebac006089008182bb02cdb1856a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Thu, 28 Mar 2013 01:16:42 +0100 Subject: [PATCH] const&ness --- src/plasmapkg/plasmapkg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plasmapkg/plasmapkg.cpp b/src/plasmapkg/plasmapkg.cpp index 832e17fd9..01f1e34c7 100644 --- a/src/plasmapkg/plasmapkg.cpp +++ b/src/plasmapkg/plasmapkg.cpp @@ -355,10 +355,10 @@ QStringList PlasmaPkgPrivate::packages(const QStringList& types) foreach (const QString& type, types) { if (type.compare("Plasma/Wallpaper", Qt::CaseInsensitive) == 0) { - QStringList wallies = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "plasma/wallpapers/", QStandardPaths::LocateDirectory); + const QStringList &wallies = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "plasma/wallpapers/", QStandardPaths::LocateDirectory); foreach (const QString &wpath, wallies) { - QDir cd(wpath); - QStringList entries = cd.entryList(QDir::Dirs); + const QDir cd(wpath); + const QStringList &entries = cd.entryList(QDir::Dirs); foreach (const QString wallpap, entries) { if ((wallpap != "." && wallpap != "..") && (QFile::exists(wpath+'/'+wallpap+"/metadata.desktop"))) {