Fix a warning about integer change of sign with ICC

showSyncWarning would print the line and column using QString::number,
so instead of a -1 (which was probably the author's intent), it would
show 4294967295. A zero is probably better.

Change-Id: Iff663be1a98d4d934755447e34a5dc8f9149047f
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
Thiago Macieira
2012-05-20 21:11:56 +02:00
parent ae09c64f80
commit d341e59d3d

View File

@@ -595,7 +595,7 @@ void QmlLiveTextPreview::documentChanged(QmlJS::Document::Ptr doc)
if (doc && m_previousDoc && doc->fileName() == m_previousDoc->fileName()) { if (doc && m_previousDoc && doc->fileName() == m_previousDoc->fileName()) {
if (doc->fileName().endsWith(".js")) { if (doc->fileName().endsWith(".js")) {
m_changesUnsynchronizable = true; m_changesUnsynchronizable = true;
showSyncWarning(JSChangeWarning, QString(), -1, -1); showSyncWarning(JSChangeWarning, QString(), 0, 0);
m_previousDoc = doc; m_previousDoc = doc;
return; return;
} }