forked from qt-creator/qt-creator
QmlProfiler: Fix warning
Change-Id: Ib846c2d347610cdde4592960ad96b03195f3c13f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -360,7 +360,8 @@ QVariant QmlProfilerStatisticsModel::data(const QModelIndex &index, int role) co
|
|||||||
return type.data().isEmpty() ? tr("Source code not available")
|
return type.data().isEmpty() ? tr("Source code not available")
|
||||||
: type.data();
|
: type.data();
|
||||||
default:
|
default:
|
||||||
QTC_ASSERT(false, return QVariant());
|
QTC_CHECK(false);
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return QVariant();
|
return QVariant();
|
||||||
@@ -649,7 +650,8 @@ QVariant QmlProfilerStatisticsRelativesModel::data(const QModelIndex &index, int
|
|||||||
return type.data().isEmpty() ? tr("Source code not available")
|
return type.data().isEmpty() ? tr("Source code not available")
|
||||||
: type.data();
|
: type.data();
|
||||||
default:
|
default:
|
||||||
QTC_ASSERT(false, return QVariant());
|
QTC_CHECK(false);
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
Reference in New Issue
Block a user