QtConcurrent: fix warning due to assignment to narrower integer type
MSVC warns due to assignment of std::distance's return value (__int64) to int when warning C4244 is enabled. Pick-to: 6.5 Change-Id: I78360ec1bbe861b96d6875af3a29b77f419a3843 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
9ddd71a6c2
commit
eb8782cb2e
@ -156,7 +156,7 @@ public:
|
||||
begin(_begin),
|
||||
end(_end),
|
||||
current(_begin),
|
||||
iterationCount(selectIteration(IteratorCategory()) ? std::distance(_begin, _end) : 0),
|
||||
iterationCount(selectIteration(IteratorCategory()) ? static_cast<int>(std::distance(_begin, _end)) : 0),
|
||||
forIteration(selectIteration(IteratorCategory())),
|
||||
progressReportingEnabled(true)
|
||||
{
|
||||
@ -168,7 +168,7 @@ public:
|
||||
begin(_begin),
|
||||
end(_end),
|
||||
current(_begin),
|
||||
iterationCount(selectIteration(IteratorCategory()) ? std::distance(_begin, _end) : 0),
|
||||
iterationCount(selectIteration(IteratorCategory()) ? static_cast<int>(std::distance(_begin, _end)) : 0),
|
||||
forIteration(selectIteration(IteratorCategory())),
|
||||
progressReportingEnabled(true),
|
||||
defaultValue(U())
|
||||
@ -181,7 +181,7 @@ public:
|
||||
begin(_begin),
|
||||
end(_end),
|
||||
current(_begin),
|
||||
iterationCount(selectIteration(IteratorCategory()) ? std::distance(_begin, _end) : 0),
|
||||
iterationCount(selectIteration(IteratorCategory()) ? static_cast<int>(std::distance(_begin, _end)) : 0),
|
||||
forIteration(selectIteration(IteratorCategory())),
|
||||
progressReportingEnabled(true),
|
||||
defaultValue(std::forward<U>(_defaultValue))
|
||||
|
Loading…
x
Reference in New Issue
Block a user