Fix issue #25: eliminate [-Wmaybe-uninitialized] warnings reported by GCC

This commit is contained in:
Debao Zhang
2014-02-18 09:27:41 +08:00
parent c8bc61ffe6
commit 2876c6f167
+4 -1
View File
@@ -129,7 +129,10 @@ XlsxMarker DrawingAnchor::loadXmlMarker(QXmlStreamReader &reader, const QString
{
Q_ASSERT(reader.name() == node);
int col, colOffset, row, rowOffset;
int col = 0;
int colOffset = 0;
int row = 0;
int rowOffset = 0;
while (!reader.atEnd()) {
reader.readNextStartElement();
if (reader.tokenType() == QXmlStreamReader::StartElement) {