aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/XmlExport/xmlexport.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-04-04 14:41:10 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-04-04 14:41:10 -0400
commitb5f93b05578293d1d233b4920a28a5c2fd826f94 (patch)
tree82332679f647e9c76e331206786d07a58dcfa9b8 /Plugins/XmlExport/xmlexport.cpp
parentaf8a7a3e3dccf9c9ad257e3952173d180c8a7421 (diff)
parenta5b034d4a9c44f9bc1e83b01de82530f8fc63013 (diff)
Merge tag 'upstream/3.0.4'
Upstream version 3.0.4 # gpg: Signature made Sat 04 Apr 2015 02:41:09 PM EDT using RSA key ID EBE9BD91 # gpg: Good signature from "Unit 193 <unit193@gmail.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.org>" # gpg: aka "Unit 193 <unit193@ubuntu.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.com>"
Diffstat (limited to 'Plugins/XmlExport/xmlexport.cpp')
-rw-r--r--Plugins/XmlExport/xmlexport.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Plugins/XmlExport/xmlexport.cpp b/Plugins/XmlExport/xmlexport.cpp
index e76fe7d..0cea7df 100644
--- a/Plugins/XmlExport/xmlexport.cpp
+++ b/Plugins/XmlExport/xmlexport.cpp
@@ -103,6 +103,8 @@ bool XmlExport::exportQueryResultsRow(SqlResultsRowPtr row)
writeln(nullTpl.arg(i));
else
writeln(rowTpl.arg(i).arg(escape(value.toString())));
+
+ i++;
}
decrIndent();
@@ -408,7 +410,7 @@ void XmlExport::writeln(const QString& str)
QStringList lines = str.split("\n");
QMutableStringListIterator it(lines);
while (it.hasNext())
- it.value().prepend(indentStr);
+ it.next().prepend(indentStr);
newStr = lines.join("\n") + newLineStr;
}