tools/designer/src/lib/uilib/abstractformbuilder.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
--- a/tools/designer/src/lib/uilib/abstractformbuilder.cpp	Fri Feb 19 23:40:16 2010 +0200
+++ b/tools/designer/src/lib/uilib/abstractformbuilder.cpp	Fri Mar 12 15:46:37 2010 +0200
@@ -364,7 +364,7 @@
     const QStringList zOrderNames = ui_widget->elementZOrder();
     if (!zOrderNames.isEmpty()) {
         QList<QWidget *> zOrder = qVariantValue<QWidgetList>(w->property("_q_zOrder"));
-        foreach (QString widgetName, zOrderNames) {
+        foreach (const QString &widgetName, zOrderNames) {
             if (QWidget *child = qFindChild<QWidget*>(w, widgetName)) {
                 if (child->parentWidget() == w) {
                     zOrder.removeAll(child);