summaryrefslogtreecommitdiffstats
path: root/src/tools/uic3/converter.cpp
diff options
context:
space:
mode:
authorKurt Korbatits <kurt.korbatits@nokia.com>2010-02-07 23:53:17 (GMT)
committerKurt Korbatits <kurt.korbatits@nokia.com>2010-02-07 23:53:17 (GMT)
commitac33de5bf257eb215a09c232d950be265d57d22f (patch)
tree3947891872c1a41deaa32e8995e2e233548b3352 /src/tools/uic3/converter.cpp
parent3108f02f35685bd57486e198277c600e09d98b13 (diff)
parent8ca95cbc98a97a8208120e4aa76bfd5c16b01df9 (diff)
downloadQt-ac33de5bf257eb215a09c232d950be265d57d22f.zip
Qt-ac33de5bf257eb215a09c232d950be265d57d22f.tar.gz
Qt-ac33de5bf257eb215a09c232d950be265d57d22f.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-multimedia-team into 4.6
Diffstat (limited to 'src/tools/uic3/converter.cpp')
-rw-r--r--src/tools/uic3/converter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/uic3/converter.cpp b/src/tools/uic3/converter.cpp
index 2bf293d..e1b4b38 100644
--- a/src/tools/uic3/converter.cpp
+++ b/src/tools/uic3/converter.cpp
@@ -401,7 +401,7 @@ DomUI *Ui3Reader::generateUi4(const QDomElement &widget)
bool resolved = false;
if (objName == receiver) {
// see if it's a custom slot
- foreach (QString cs, ui_custom_slots) {
+ foreach (const QString &cs, ui_custom_slots) {
if (cs == slot) {
resolved = true;
break;
@@ -1122,7 +1122,7 @@ void Ui3Reader::createProperties(const QDomElement &n, QList<DomProperty*> *prop
if (prop->kind() == DomProperty::Set) {
QStringList flags = prop->elementSet().split(QLatin1Char('|'));
QStringList v;
- foreach (QString fl, flags) {
+ foreach (const QString &fl, flags) {
QString e = WidgetInfo::resolveEnumerator(className, fl);
if (e.isEmpty()) {
e = m_porting->renameEnumerator(className + QLatin1String("::") + fl);
@@ -1283,7 +1283,7 @@ QString Ui3Reader::fixType(const QString &t) const
QString newText = t;
//split type name on <>*& and whitespace
QStringList typeNames = t.split(QRegExp(QLatin1String("<|>|\\*|&| ")), QString::SkipEmptyParts);
- foreach(QString typeName , typeNames) {
+ foreach(const QString &typeName , typeNames) {
QString newName = fixClassName(typeName);
if( newName != typeName ) {
newText.replace(typeName, newName);