Mats Palmgren
0df6d4d12b
Bug 1376498 part 1 - Unify the ns[Base|Interface|RefPtr]Hashtable::Remove() signatures for consistency. Make it return true if an entry was removed, with an optional out param to move the value. r=froydnj
...
MozReview-Commit-ID: JVciibiSPL5
2017-07-05 02:01:44 +02:00
Mats Palmgren
66ab5edf21
Bug 1372317 part 3 - Remove nsBaseHashtable::LookupRemoveIf() since it's not used anymore. r=froydnj
...
Also, change the gtest to test Lookup() and Lookup().Remove()
in various forms.
MozReview-Commit-ID: 6AguNDhcR5W
2017-06-18 17:07:54 +02:00
Mats Palmgren
e8b32f6cbc
Bug 1372317 part 1 - Introduce a nsBaseHashtable::Lookup() method that allows modifying the value and optionally remove the entry. r=froydnj
...
MozReview-Commit-ID: AcNBQvTMnX8
2017-06-18 17:07:54 +02:00
Mats Palmgren
fa106acf45
Bug 1371094 part 1 - Move the nsClassHashtable::LookupForAdd() method to nsBaseHashtable. r=froydnj
...
Also change nsClassHashtable::LookupOrAdd to not regard existing entries with
a nullptr value as non-existent. This is to make it consistent with
nsBaseHashtable::LookupForAdd() and other methods.
MozReview-Commit-ID: 1wYqK8XQbyW
2017-06-14 01:03:38 +02:00
Mats Palmgren
cb04c57d76
Bug 1371061 - Optimize nsBaseHashtable::GetOrInsert() to only do a single hashtable lookup. r=froydnj
...
MozReview-Commit-ID: 6muOorLplG1
2017-06-08 12:48:32 +02:00
Mats Palmgren
65930f5f90
Bug 1370632 - Move LookupRemoveIf() to nsBaseHashtable instead so that it can be used on more hashtables types. r=froydnj
...
MozReview-Commit-ID: 9kQSytPWok5
2017-06-07 15:22:41 +02:00
Ehsan Akhgari
d16a8246c2
Bug 1359848 - Part 1: Add the nsClassHashtable::LookupForAdd() API to allow consumers to lookup and add an entry to a class hashtable if it doesn't exist already with a single lookup; r=froydnj
2017-05-03 08:59:48 -04:00
Benjamin Smedberg
ceef2817a3
Bug 1332631 part C - file moves from xpcom/glue to xpcom/ds, r=froydnj
...
MozReview-Commit-ID: 9ZhC5bROWdO
2017-01-20 13:59:21 -05:00
[email protected]
432e9cc9a1
Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin
2005-08-15 18:29:55 +00:00
[email protected]
44a6531d52
Backout bug 299992 - too much odd platform-specific bustage
2005-08-11 22:07:08 +00:00
[email protected]
0203b6eec5
Bug 299992, the part before the actual work: move pldhash and the templatized hashtables into the glue (and drop the minor dependencies on NSPR), and centralize our various in-tree nsINIParser classes into the glue (does not affect the ones used for the various installers) r=brendan/darin a=chase/cbeard
2005-08-11 20:40:53 +00:00
[email protected]
f268f3191c
Bug 212919 - Fix const issues in nsDataHashtable on MSVC7 (I'm surprised other
...
compilers didn't barf already!) r=swalker sr=scc a=asa
2003-08-09 19:24:24 +00:00
[email protected]
8d0ec44e04
Bug 209622 nsTHashtable cause bustage on Solaris with F6U2
...
r/sr=bsmedberg
The missed part in nsBaseHashtable.h, patch by [email protected]
2003-06-20 01:26:00 +00:00
[email protected]
d1e4a804a7
Bug 209622 - bustage fix for stupid compilers (Sun WS and DEC OSF1) -
...
also remove unused configure test. r=dbaron sr=alecf
2003-06-19 18:42:23 +00:00
[email protected]
92d9617dd5
Bug 193031 fix category manager to use aPersist parameter. Bug 54639 Category Manager is not thread-safe. Bug 208437 separate threadsafe nsBaseHashtable into super-class nsBaseHashtableMT. r=dougt/alecf I know Sun Workshop builds are still broken... working on it.
2003-06-18 11:26:27 +00:00
[email protected]
fdfcd3cc25
bug 206254 allow nsBaseHashtable::IsInitialized() and bug 206528 nsBaseHashtable should initialize mLock. r=alecf
2003-05-26 23:36:19 +00:00
[email protected]
149a4c2baa
Fix ANSI-strict compiler errors using GCC 3.4 (from CVS). bug 201407 r=jkeiser sr=brendan a=sspitzer
2003-05-11 01:28:03 +00:00
[email protected]
f0d05c874b
Fixing AIX bustage. r=jdunn a=mkaply/ycalonje
2003-04-24 16:01:24 +00:00
[email protected]
045273489d
Bug 201034 non-const enumeration in nsBaseHashtable, add
...
nsTHashtable::RawRemove. Add a hashtable test-suite, and
clean up some codesize issues. Also fixes bug 203030 and
hopefully SunOS build bustage. r=jkeiser sr=alecf a=asa
2003-04-24 01:54:57 +00:00
[email protected]
b45108cb51
bug 200709 remove dynamic linking of nsTHashtable and family. r=jkeiser sr=alecf
2003-04-10 13:27:16 +00:00
[email protected]
ca8cce9772
Templatized hashtable class by [email protected] (bug 180264), [email protected] , [email protected]
2003-04-02 06:53:57 +00:00