don't call both variable info, this doesn't work under msvc

svn path=/trunk/KDE/kdebase/workspace/; revision=1120767
This commit is contained in:
Carlo Segato 2010-04-29 22:24:25 +00:00 committed by Marco Martin
parent 074580047f
commit 0ad362c94c

View File

@ -106,9 +106,9 @@ bool AppInterface::hasBattery() const
QStringList AppInterface::knownWidgetTypes() const QStringList AppInterface::knownWidgetTypes() const
{ {
QStringList widgets; QStringList widgets;
KPluginInfo::List info = Plasma::Applet::listAppletInfo(); KPluginInfo::List infoLs = Plasma::Applet::listAppletInfo();
foreach (const KPluginInfo &info, info) { foreach (const KPluginInfo &info, infoLs) {
widgets.append(info.pluginName()); widgets.append(info.pluginName());
} }
@ -128,9 +128,9 @@ QStringList AppInterface::knownPanelTypes() const
QStringList AppInterface::knownContainmentTypes(const QString &type) const QStringList AppInterface::knownContainmentTypes(const QString &type) const
{ {
QStringList containments; QStringList containments;
KPluginInfo::List info = Plasma::Containment::listContainmentsOfType(type); KPluginInfo::List infoLs = Plasma::Containment::listContainmentsOfType(type);
foreach (const KPluginInfo &info, info) { foreach (const KPluginInfo &info, infoLs) {
containments.append(info.pluginName()); containments.append(info.pluginName());
} }