Commit c406f712 authored by David Schulz's avatar David Schulz

Clang: Fix conversion warning on windows

Change-Id: Ieb7148738052a139e128fd26cab7e601f703fc35
Reviewed-by: Nikolai Kosjar's avatarNikolai Kosjar <nikolai.kosjar@qt.io>
parent 98b66534
......@@ -150,7 +150,7 @@ QVector<SourceRangeContainer> Diagnostic::getSourceRangeContainers() const
auto rangeVector = ranges();
QVector<SourceRangeContainer> sourceRangeContainers;
sourceRangeContainers.reserve(rangeVector.size());
sourceRangeContainers.reserve(int(rangeVector.size()));
for (auto &&sourceRange : rangeVector)
sourceRangeContainers.push_back(sourceRange.toSourceRangeContainer());
......@@ -163,7 +163,7 @@ QVector<FixItContainer> Diagnostic::getFixItContainers() const
auto fixItVector = fixIts();
QVector<FixItContainer> fixItContainers;
fixItContainers.reserve(fixItVector.size());
fixItContainers.reserve(int(fixItVector.size()));
for (auto &&fixIt : fixItVector)
fixItContainers.push_back(fixIt.toFixItContainer());
......
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