From b2ca8183f6a7da1abd332bccee7f3f28dc4184d8 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Tue, 13 Apr 1999 22:11:22 +0000 Subject: [PATCH] augh, don't use quicksort for now, I'm not sure why windows can't see it. git-svn-id: svn://10.0.0.236/trunk@27398 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/base/util/nsUInt32Array.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/mailnews/base/util/nsUInt32Array.cpp b/mozilla/mailnews/base/util/nsUInt32Array.cpp index c7151a1c7e9..58f38e73022 100644 --- a/mozilla/mailnews/base/util/nsUInt32Array.cpp +++ b/mozilla/mailnews/base/util/nsUInt32Array.cpp @@ -42,11 +42,13 @@ PRUint32 nsUInt32Array::GetSize() const return m_nSize; } -PRBool nsUInt32Array::SetSize(PRUint32 nSize, PRUint32 nGrowBy) +PRBool nsUInt32Array::SetSize(PRUint32 nSize, + PRBool adjustGrowth, + PRUint32 nGrowBy) { PR_ASSERT(nSize >= 0); - if (nGrowBy >= 0) + if (adjustGrowth) m_nGrowBy = nGrowBy; #ifdef MAX_ARR_ELEMS @@ -273,6 +275,8 @@ static int CompareDWord (const void *v1, const void *v2, void *) void nsUInt32Array::QuickSort (int (*compare) (const void *elem1, const void *elem2, void *data)) { // we don't have a quick sort method in mozilla yet....commenting out for now. +#if 0 if (m_nSize > 1) nsQuickSort(m_pData, m_nSize, sizeof(void*), compare ? compare : CompareDWord, nsnull); +#endif }