Revert "QtConcurrent::Median: add some qMove()"
This reverts commit 12bd604f241d41d52ab3fde9f4a8f4f5c2f3fa6d. This causes problems in QtCreator without anyone being able to say why. Task-number: QTBUG-34397 Change-Id: I7733c3db7d35bba2734e128476aabcb0152a91e4 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
parent
1d07c72431
commit
0884802bb5
@ -90,7 +90,7 @@ public:
|
||||
dirty = true;
|
||||
}
|
||||
|
||||
values[currentIndex] = qMove(value);
|
||||
values[currentIndex] = value;
|
||||
}
|
||||
|
||||
bool isMedianValid() const
|
||||
@ -105,7 +105,7 @@ public:
|
||||
QVector<T> copy = values;
|
||||
typename QVector<T>::iterator begin = copy.begin(), mid = copy.begin() + bufferSize/2, end = copy.end();
|
||||
std::nth_element(begin, mid, end);
|
||||
currentMedian = qMove(*mid);
|
||||
currentMedian = *mid;
|
||||
}
|
||||
return currentMedian;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user