Commit 1070da91 authored by Eike Ziller's avatar Eike Ziller Committed by hjk

Avoid compiler warning on Mac

Change-Id: I10eab3a4b5fc4bf43ee80b1b4baf5767c72ab9c1
Reviewed-on: http://codereview.qt.nokia.com/1208Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent e2cdaf78
......@@ -361,7 +361,7 @@ void DebuggerSourcePathMappingWidget::slotAddQt()
if (qtSourcesPath.isEmpty())
return;
const size_t buildPathCount = sizeof(qtBuildPaths)/sizeof(qtBuildPaths[0]);
for (size_t i = 0; i < buildPathCount; ++i)
for (size_t i = 0; i != buildPathCount; ++i) // use != to avoid 0<0 which triggers warning on Mac
m_model->addMapping(QString::fromLatin1(qtBuildPaths[i]), qtSourcesPath);
resizeColumns();
setCurrentRow(m_model->rowCount() - 1);
......@@ -403,7 +403,7 @@ DebuggerSourcePathMappingWidget::SourcePathMap
if (qtInstallPath.isEmpty() || buildPathCount == 0)
return rc;
for (size_t i = 0; i < buildPathCount; i++) {
for (size_t i = 0; i != buildPathCount; ++i) { // use != to avoid 0<0 which triggers warning on Mac
const QString buildPath = QString::fromLatin1(qtBuildPaths[i]);
if (!rc.contains(buildPath)) // Do not overwrite user settings.
rc.insert(buildPath, qtInstallPath);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment