mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 19:30:41 +00:00
Spelling: Par*r*tition
svn-id: r46688
This commit is contained in:
parent
81a1d45821
commit
ebbc33c3ca
@ -176,7 +176,7 @@ T sortChoosePivot(T first, T last) {
|
||||
}
|
||||
|
||||
template<typename T, class StrictWeakOrdering>
|
||||
T sortPatition(T first, T last, T pivot, StrictWeakOrdering &comp) {
|
||||
T sortPartition(T first, T last, T pivot, StrictWeakOrdering &comp) {
|
||||
--last;
|
||||
SWAP(*pivot, *last);
|
||||
|
||||
@ -203,7 +203,7 @@ void sort(T first, T last, StrictWeakOrdering comp) {
|
||||
return;
|
||||
|
||||
T pivot = sortChoosePivot(first, last);
|
||||
pivot = sortPatition(first, last, pivot, comp);
|
||||
pivot = sortPartition(first, last, pivot, comp);
|
||||
sort<T, StrictWeakOrdering>(first, pivot, comp);
|
||||
sort<T, StrictWeakOrdering>(++pivot, last, comp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user