From ae11b064c8f29589cb5f347c8fc9f1e43d2b52ef Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 28 Feb 2011 16:21:03 +0200 Subject: [PATCH] GUI: Small cleanup for projectfile code. --- gui/projectfile.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/gui/projectfile.cpp b/gui/projectfile.cpp index 8d5310d16..71a7180ed 100644 --- a/gui/projectfile.cpp +++ b/gui/projectfile.cpp @@ -361,8 +361,7 @@ bool ProjectFile::Write(const QString &filename) if (!mIncludeDirs.isEmpty()) { xmlWriter.writeStartElement(IncludDirElementName); - QString incdir; - foreach(incdir, mIncludeDirs) + foreach(QString incdir, mIncludeDirs) { xmlWriter.writeStartElement(DirElementName); xmlWriter.writeAttribute(DirNameAttrib, incdir); @@ -374,8 +373,7 @@ bool ProjectFile::Write(const QString &filename) if (!mDefines.isEmpty()) { xmlWriter.writeStartElement(DefinesElementName); - QString define; - foreach(define, mDefines) + foreach(QString define, mDefines) { xmlWriter.writeStartElement(DefineName); xmlWriter.writeAttribute(DefineNameAttrib, define); @@ -387,8 +385,7 @@ bool ProjectFile::Write(const QString &filename) if (!mPaths.isEmpty()) { xmlWriter.writeStartElement(PathsElementName); - QString path; - foreach(path, mPaths) + foreach(QString path, mPaths) { xmlWriter.writeStartElement(PathName); xmlWriter.writeAttribute(PathNameAttrib, path); @@ -400,8 +397,7 @@ bool ProjectFile::Write(const QString &filename) if (!mIgnoredPaths.isEmpty()) { xmlWriter.writeStartElement(IgnoreElementName); - QString path; - foreach(path, mIgnoredPaths) + foreach(QString path, mIgnoredPaths) { xmlWriter.writeStartElement(IgnorePathName); xmlWriter.writeAttribute(IgnorePathNameAttrib, path);