Граф коммитов

57 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Watt 2f65a96d20 Bug 551299. Add a SetCount() method to nsCOMArray and nsVoidArray. r=bsmedberg.
--HG--
extra : rebase_source : 676b497a4fda08ec509c2ce9fdc7060af8be1663
2010-03-15 11:38:50 +00:00
Fred Jendrzejewski fd612bd117 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 4460c617be 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 ea277028d1 Fix a regression from my patch for bug 445999 in the self-assignment case. 2008-09-10 16:23:00 -07:00
Jesse Ruderman d1d1998327 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 a58fefa793 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 12e960c504 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
roc+@cs.cmu.edu 0054412272 Bug 374866. Reftests for text-transform. r=dbaron 2007-03-22 16:01:14 -07:00
timeless%mozdev.org 2fbdf7b897 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 21:01:40 +00:00
jwalden%mit.edu ef68fcf595 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 07:08:56 +00:00
jwalden%mit.edu b4488ce6a0 Bug 361792 - Signed-unsigned comparison in nsVoidArray.cpp. r+sr=darin 2006-11-28 00:32:30 +00:00
jruderman%hmc.edu 500e22801a 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 fff88cc6ad Bug 347114 - nsVoidArray::SetArray implementation is marked inline incorrectly, r=obvious build bustage 2006-08-03 13:34:20 +00:00
bsmedberg%covad.net ca0e0a4bd6 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 fabafe8410 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 9553d3277e 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 dd0fbf625f 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 38ff5d49ce Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-11-02 16:05:20 +00:00
jshin%mailaps.org 67638ecdf3 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 0433a8ff30 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 e1d666b76b Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst 2005-11-02 16:05:06 +00:00
dbaron%fas.harvard.edu fbcc0ac4be 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 3ad3d60c41 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 38678fcafb 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 8d57d8c401 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 76d0de1185 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp 2005-11-02 16:04:59 +00:00
rjesup%wgate.com 585c87203b Bug 96108: Fix Win32/opt horkage (SizeOf()) in nsSmallVoidArray should be
#if dEBUG)
2005-11-02 16:04:56 +00:00
rjesup%wgate.com 5bf52466e2 Bug 96108: Additional assertions requested by jst. sr=jst 2005-11-02 16:04:55 +00:00
rjesup%wgate.com e779a74a25 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 0978688333 Making debugging code be |#ifdef DEBUG|. b=91036 r=harishd sr=jst 2005-11-02 16:04:53 +00:00
alecf%netscape.com 69c4f40601 bug 104126 - remove nsStringArray::IndexOfIgnoreCase and its one consumer. sr=attinasi, r=jag 2005-11-02 16:04:52 +00:00
gerv%gerv.net 846e640dde 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 36b5b9814c 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 6ad2daa92f Fix mac bustage. 2005-11-02 16:04:32 +00:00
waterson%netscape.com 966f470745 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 86c2ae006c 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 091b65c4da 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 f3f52b9c62 Fix bug in void array's assignment operator. r=scc 2005-11-02 16:04:28 +00:00
jst%netscape.com cb6363f05b 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 f25ee1b3f7 #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 86fb96bdcc Fix UMRs. 2005-11-02 16:04:24 +00:00
waterson%netscape.com 8e2f748a21 Fix leak I made. r=warren 2005-11-02 16:04:23 +00:00
waterson%netscape.com af21c27074 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 c0c0a5208d Fixing runtime assert bustage. r=pinkerton 2005-11-02 16:04:15 +00:00
jband%netscape.com f1479fc184 adding member initializer to quiet Purify. r=waterson. 1999-12-07 07:17:44 +00:00
waterson%netscape.com 23746f183e Make 'kGrowArrayBy' const. Thanks, Heikki. 1999-12-01 22:44:42 +00:00
waterson%netscape.com 1e906224e6 Bug 9489. Add support for nsAutoVoidArray. r=scc,shaver 1999-12-01 00:37:11 +00:00
dmose%mozilla.org 8535dda53e 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 96d6215964 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 d07faca171 Reworked sizeof api's to be much more useful; updated implementations to match 1999-08-31 03:04:37 +00:00