Commit Graph

53 Commits

Author SHA1 Message Date
Fred Jendrzejewski
424883d380 Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg
--HG--
extra : rebase_source : b963bf5de9d9c445b14620479691482512e0faf2
2009-01-22 17:15:34 +13:00
Arpad Borsos
c72ef7d248 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
Jesse Ruderman
dcb70052c5 Fix a regression from my patch for bug 445999 in the self-assignment case. 2008-09-10 16:23:00 -07:00
Jesse Ruderman
9e72e6554f Fix bug 445999, nsCStringArray::operator= leaks all strings that were in the destination array. r=bsmedberg 2008-09-10 15:02:06 -07:00
timeless@mozdev.org
66687b1110 Bug 292940 partial OOM audit for nsStringArray and nsCStringArray r=darin, r=bsmedberg, sr=mrbkap, a=mtschrep thanks to ryanvm@gmail.com for unbitrotting 2008-01-14 13:01:40 -08:00
jwalden@mit.edu
6d7584839a Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
jwalden%mit.edu
a48182c886 Bug 361792 - Signed-unsigned comparison in nsVoidArray.cpp. r+sr=darin 2006-11-28 00:32:30 +00:00
jruderman%hmc.edu
0c9fdb883f Bug 324911, use different error messages for out-of-range in ElementAt and FastElementAt. r+sr=sicking. 2006-09-06 00:22:52 +00:00
benjamin%smedbergs.us
9ca8e85066 Bug 347114 - nsVoidArray::SetArray implementation is marked inline incorrectly, r=obvious build bustage 2006-08-03 13:34:20 +00:00
bsmedberg%covad.net
107e388551 The XPCOM glue cannot use NSPR, provisional r=bz to fix btek bustage until I can find an XPCOM peer. 2005-11-14 16:36:39 +00:00
bsmedberg%covad.net
acf28ad4d1 Bug 289010 - Move nsVoidArray/nsCOMArray to the XPCOM glue, and a few other things to make the glue easier to use, r=shaver+darin . The following files were CVS-copied from xpcom/ds to xpcom/glue:
nsVoidArray.h
nsVoidArray.cpp
nsCOMArray.h
nsCOMArray.cpp
nsQuickSort.h
nsQuickSort.cpp
2005-11-02 20:38:21 +00:00
cvshook%sicking.cc
d7faa72532 Bug 312226: Get rid of virtuality in nsVoidArray and optimize nsSmallVoidArray.
r=rjesup sr=jst
2005-11-02 16:05:24 +00:00
Olli.Pettay%helsinki.fi
d19a0f5713 Bug 255792, nsSmallVoidArray::ReplaceElementAt does not work in the same way as nsVoidArray::ReplaceElementAt, r=rjesup,sr=alecf 2005-11-02 16:05:22 +00:00
gerv%gerv.net
beabfb9291 Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-11-02 16:05:20 +00:00
jshin%mailaps.org
88e93316ef bug 229705 : CStringArray should accept |nsACString&| instead of |nsCString&|. r=mscott, sr=alecf (with darin, jst, dbaron helping) 2005-11-02 16:05:11 +00:00
jshin%mailaps.org
aa34a67050 bug 229705: make CStringArray:CStringAt accept nsACString& as out param. (r=alecf, sr=bz) 2005-11-02 16:05:07 +00:00
dbaron%dbaron.org
25c466b97e Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst 2005-11-02 16:05:06 +00:00
dbaron%fas.harvard.edu
dc78f1a372 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa 2005-11-02 16:05:04 +00:00
cathleen%netscape.com
718da9b13c eliminate 24 callers to nsCRT::memmove to use memmove from libC instead. removed nsCRT::memove() bug 118135 r=dp sr=brendan 2005-11-02 16:05:03 +00:00
racham%netscape.com
7b10e797f3 Fixing bug 122309. Adding a new routine that can take a string and parse it on a delimiter to add elements to the nsCStringArray. r=dougt, sr=jag 2005-11-02 16:05:02 +00:00
cathleen%netscape.com
8e7e7a12be eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan 2005-11-02 16:05:01 +00:00
cathleen%netscape.com
dff8a8c59e converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp 2005-11-02 16:04:59 +00:00
rjesup%wgate.com
072f6676ee Bug 96108: Fix Win32/opt horkage (SizeOf()) in nsSmallVoidArray should be
#if dEBUG)
2005-11-02 16:04:56 +00:00
rjesup%wgate.com
3650d4c81e Bug 96108: Additional assertions requested by jst. sr=jst 2005-11-02 16:04:55 +00:00
rjesup%wgate.com
ddf5c83e3c Bug 96108: Inline ElementAt(), add SafeElementAt(), voidarray usage fixes,
assertions for bad voidarray indexes.  r=jst, sr=waterson
2005-11-02 16:04:54 +00:00
dbaron%fas.harvard.edu
ef62f4e1c6 Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst 2005-11-02 16:04:53 +00:00
alecf%netscape.com
893b00159a bug 104126 - remove nsStringArray::IndexOfIgnoreCase and its one consumer. sr=attinasi, r=jag 2005-11-02 16:04:52 +00:00
gerv%gerv.net
7c65a9b363 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2005-11-02 16:04:51 +00:00
waterson%netscape.com
c7d124ba58 Bug 94267. Clean up nsVoidArray::GrowArrayBy(), fixing a couple of crashers. r=rjesup, sr=brendan 2005-11-02 16:04:33 +00:00
waterson%netscape.com
e0c58f4510 Fix mac bustage. 2005-11-02 16:04:32 +00:00
waterson%netscape.com
6563ff5f12 Bug 90545. nsVoidArray and nsSupportsArray cleanup. Patch submitted by rjesup@wgate.com, r=jst, sr=waterson. 2005-11-02 16:04:31 +00:00
rbs%maths.uq.edu.au
30304c99a7 Add methods for in-place sorting of nsVoidArray and ns[C]StringArray using caller-provided comparator callback functions. b=88344 r=dbaron sr=scc 2005-11-02 16:04:30 +00:00
kandrot%netscape.com
29dbb2527c r=kandrot@netscape.com, sr=waterson@netscape.com, a=asa@mozilla.org
removes a memset that sets zero bytes (so it did nothing)
2005-11-02 16:04:29 +00:00
hyatt%netscape.com
364a6e9b71 Fix bug in void array's assignment operator. r=scc 2005-11-02 16:04:28 +00:00
jst%netscape.com
fee902dd43 DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc 2005-11-02 16:04:27 +00:00
mkaply%us.ibm.com
e95ad0f35e #43877
r=dougt, a=dougt
Using this pointer rather than other pointer causes crash
2005-11-02 16:04:25 +00:00
waterson%netscape.com
6610ace60f Fix UMRs. 2005-11-02 16:04:24 +00:00
waterson%netscape.com
4912139130 Fix leak I made. r=warren 2005-11-02 16:04:23 +00:00
waterson%netscape.com
f2637c5ff7 Grow by power of two after reaching 16 elements; factor 'implementation' into a separate struct so the nsVoidArray object is one word when empty. 2005-11-02 16:04:22 +00:00
scc%netscape.com
ba15cfd0a7 Fixing runtime assert bustage. r=pinkerton 2005-11-02 16:04:15 +00:00
jband%netscape.com
2eaaa4083b adding member initializer to quiet Purify. r=waterson. 1999-12-07 07:17:44 +00:00
waterson%netscape.com
084b9e5d76 Make 'kGrowArrayBy' const. Thanks, Heikki. 1999-12-01 22:44:42 +00:00
waterson%netscape.com
6d00264a22 Bug 9489. Add support for nsAutoVoidArray. r=scc,shaver 1999-12-01 00:37:11 +00:00
dmose%mozilla.org
142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
valeski%netscape.com
aad867ad42 15590, r=kipp. added a nsCStringArray class so the cool string array functionality could be used for CStrings too. this checkin is *part* of a fix to the bug 1999-10-29 20:47:17 +00:00
kipp%netscape.com
948ad27a21 Reworked sizeof api's to be much more useful; updated implementations to match 1999-08-31 03:04:37 +00:00
pinkerton%netscape.com
e4462b13c1 missing [] on delete of internal array in operator=. 1999-05-26 21:13:29 +00:00
peterl%netscape.com
1533456233 added nsStringArray 1999-01-23 06:58:34 +00:00
jevering
ca519eff60 Modified ReplaceElementAt to grow the array if an index out of the
allocated boundary was requested.
1998-07-02 00:28:56 +00:00
troy
840313626c Added an additional constructor 1998-06-11 22:48:25 +00:00