diff --git a/dataengine.cpp b/dataengine.cpp index 364b15e67..259ac2ef9 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -331,7 +331,7 @@ void DataEngine::removeAllSources() while (it.hasNext()) { it.next(); Plasma::DataContainer *s = it.value(); - const QString &source = it.key(); + const QString source = it.key(); it.remove(); s->disconnect(this); s->deleteLater();