forked from qt-creator/qt-creator
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:
@@ -595,7 +595,7 @@ void QmlLiveTextPreview::documentChanged(QmlJS::Document::Ptr doc)
|
||||
if (doc && m_previousDoc && doc->fileName() == m_previousDoc->fileName()) {
|
||||
if (doc->fileName().endsWith(".js")) {
|
||||
m_changesUnsynchronizable = true;
|
||||
showSyncWarning(JSChangeWarning, QString(), -1, -1);
|
||||
showSyncWarning(JSChangeWarning, QString(), 0, 0);
|
||||
m_previousDoc = doc;
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user