GUI: Small cleanup for projectfile code.

This commit is contained in:
Kimmo Varis 2011-02-28 16:21:03 +02:00
parent fb74da7fbf
commit ae11b064c8
1 changed files with 4 additions and 8 deletions

View File

@ -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);