Changeset 102324 in vbox for trunk/src/libs/xpcom18a4/xpcom/ds
- Timestamp:
- Nov 27, 2023 3:12:46 PM (15 months ago)
- Location:
- trunk/src/libs/xpcom18a4/xpcom/ds
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/ds/nsVoidArray.cpp
r1 r102324 35 35 * 36 36 * ***** END LICENSE BLOCK ***** */ 37 #include <iprt/cdefs.h> 38 #include <iprt/sort.h> 39 37 40 #include "nsVoidArray.h" 38 #include "nsQuickSort.h"39 41 #include "prmem.h" 40 42 #include "nsCRT.h" … … 618 620 }; 619 621 620 PR_STATIC_CALLBACK(int) 621 VoidArrayComparator(const void* aElement1, const void* aElement2, void* aData) 622 static DECLCALLBACK(int) VoidArrayComparator(const void* aElement1, const void* aElement2, void* aData) 622 623 { 623 624 VoidArrayComparatorContext* ctx = NS_STATIC_CAST(VoidArrayComparatorContext*, aData); … … 632 633 { 633 634 VoidArrayComparatorContext ctx = {aFunc, aData}; 634 NS_QuickSort(mImpl->mArray, mImpl->mCount, sizeof(mImpl->mArray[0]),635 635 RTSortShell(mImpl->mArray, mImpl->mCount, sizeof(mImpl->mArray[0]), 636 VoidArrayComparator, &ctx); 636 637 } 637 638 }
Note:
See TracChangeset
for help on using the changeset viewer.