Revision: 168
http://ktutorial.svn.sourceforge.net/ktutorial/?rev=168&view=rev
Author: danxuliu
Date: 2010-03-19 18:31:07 +0000 (Fri, 19 Mar 2010)
Log Message:
-----------
Fix Kraxy2 foreach issues
Modified Paths:
--------------
trunk/ktutorial/ktutorial-editor/src/serialization/JavascriptExporter.cpp
Modified: trunk/ktutorial/ktutorial-editor/src/serialization/JavascriptExporter.cpp
===================================================================
--- trunk/ktutorial/ktutorial-editor/src/serialization/JavascriptExporter.cpp 2010-03-19 18:15:55 UTC (rev 167)
+++ trunk/ktutorial/ktutorial-editor/src/serialization/JavascriptExporter.cpp 2010-03-19 18:31:07 UTC (rev 168)
@@ -61,7 +61,7 @@
QStringList lines = tutorial->licenseText().split('\n');
int maximumLineLength = 0;
- foreach (QString line, lines) {
+ foreach (const QString& line, lines) {
if (line.size() > maximumLineLength) {
maximumLineLength = line.size();
}
@@ -173,7 +173,7 @@
out() << "connect(" << stepVariable << ", \"setup(QObject*)\",\n"
<< " this, \"" << stepVariable << "Setup(QObject*)\");\n\n";
- foreach (QString function, mPendingFunctions) {
+ foreach (const QString& function, mPendingFunctions) {
mOut << function << '\n';
}
mPendingFunctions.clear();
@@ -287,7 +287,7 @@
QString variable = addVariable("waitFor" + type);
out() << variable << " = ktutorial.newWaitFor(\"WaitFor" << type
<< "\");\n";
- foreach (QString childVariable, childVariables) {
+ foreach (const QString& childVariable, childVariables) {
if (!childVariable.isEmpty()) {
out() << variable << ".add(" << childVariable << ");\n";
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|