Andrew McCreight
f1686dd1bd
Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
...
This leaves alone the AppendElement methods.
2015-09-15 15:30:44 -07:00
Michael Layzell
a492423046
Bug 1156802 - Part 2: Remove all explicit move constructors, r=ehsan
2015-09-12 12:34:45 -04:00
Wes Kocher
963f512872
Backed out changeset f5b2a11c64c9 (bug 1201271) for bustage
2015-09-09 15:56:21 -07:00
Andrew McCreight
67b3470269
Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
...
This leaves alone the AppendElement methods.
2015-09-09 15:39:10 -07:00
Birunthan Mohanathas
8a8793de82
Bug 1185763 - Part 4: Swap elements if possible in r-value version of nsTArray::AppendElements. r=froydnj
2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
1f32e08020
Bug 1185763 - Part 3: Rename nsTArray::MoveElementsFrom to AppendElements. r=froydnj
2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
61a63032f1
Bug 1185763 - Part 2: Remove non-rvalue version of nsTArray::MoveElementsFrom. r=froydnj
2015-08-11 08:29:46 -07:00
Aryeh Gregor
6dc0679b1b
Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj
2015-08-05 15:28:27 +03:00
Nicholas Nethercote
37d91ed8fe
Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
...
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.
And do likewise for nsTObserverArray.
2015-07-28 23:24:24 -07:00
Ehsan Akhgari
0f6413366a
Bug 1188203 - Fix more constructors in XPCOM; r=froydnj
2015-07-28 12:24:37 -04:00
Michael Layzell
f1c0abd127
Bug 1159433 - Part 4: Mark nsTAutoString_CharT and nsAutoArrayBase as non-memmovable; r=froydnj
2015-07-24 19:15:40 -04:00
Michael Layzell
2cb88278fa
Bug 1159433 - Part 3: Make nsTArray_CopyChooser only accept memmovable argument types by default; r=froydnj
2015-07-24 19:15:23 -04:00
Birunthan Mohanathas
85a7434cd3
Bug 1185589 - Properly handle self-assignment in nsTArray::operator=. r=mccr8
2015-07-21 09:42:58 -07:00
Olli Pettay
9e6981ea8b
Bug 1182277, don't leak when using nsAutoTArray inside nsTArray, r=nfroyd
2015-07-14 17:05:10 +03:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Birunthan Mohanathas
9966c291d6
Bug 968520 - Add nsTArray::Assign. r=froydnj
2015-07-07 11:27:03 -07:00
Ryan VanderMeulen
7e76c5d403
Backed out changeset 37bee149c935 (bug 968520) for checktest failures.
2015-06-30 15:47:18 -04:00
Birunthan Mohanathas
2b153a85d7
Bug 968520 - Add nsTArray::Assign. r=froydnj
2015-06-30 11:16:03 -07:00
Birunthan Mohanathas
e2e5e3e747
Bug 968520 - Always require fallible argument with FallibleTArray calls. r=froydnj
2015-06-10 14:30:41 -07:00
Birunthan Mohanathas
ac365c98cd
Bug 968520 - Add more fallible variants of nsTArray::InsertElementsAt. r=froydnj
2015-06-09 17:27:31 -07:00
Birunthan Mohanathas
9d7d8fb0d9
Bug 968520 - Add fallible variants of nsTArray::InsertElementSorted. r=froydnj
2015-06-08 13:39:57 -07:00
Birunthan Mohanathas
5dc7f87abd
Bug 968520 - Make nsTArray::InsertElementSorted support moves. r=froydnj
2015-06-08 13:39:53 -07:00
Birunthan Mohanathas
c2faedf5bb
Bug 1165729 - Remove unnecessary template declaration for fallible nsTArray::AppendElement. r=froydnj
2015-05-28 11:07:43 -07:00
Birunthan Mohanathas
84b03bd11c
Bug 968520 - Add fallible variants of nsTArray::AppendElement. r=froydnj
2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
312841e165
Bug 968520 - Add fallible variants of nsTArray::AppendElements. r=froydnj
2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
10eb19f2a2
Bug 968520 - Add fallible variants of nsTArray::InsertElementAt. r=froydnj
2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
27aa4719f6
Bug 968520 - Add fallible variants of nsTArray::ReplaceElementsAt. r=froydnj
2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
3ffbfe4934
Bug 968520 - Add fallible variant of nsTArray::SetLength. r=froydnj
2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
e791f219d9
Bug 968520 - Add fallible variant of nsTArray::EnsureLengthAtLeast. r=froydnj
2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
66188b31f3
Bug 968520 - Add fallible variants of nsTArray::InsertElementsAt. r=froydnj
2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
afcc3ad412
Bug 968520 - Add fallible variant of nsTArray::SetCapacity. r=froydnj
2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
b50c6a17fa
Bug 968520 - Explicitly specify the allocator for nsTArray_base functions. r=froydnj
2015-05-18 13:50:34 -07:00
Ehsan Akhgari
9aea0e3f0a
Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
...
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 21:40:49 -04:00
Wes Kocher
bcf61be505
Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE
2015-04-21 15:47:40 -07:00
Ehsan Akhgari
e383d2c003
Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
...
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 16:31:58 -04:00
Botond Ballo
6eb76f65a2
Bug 1156538 - Make nsTArray's move constructor implicit. r=froydnj
2015-04-20 18:42:56 -04:00
Aryeh Gregor
f1b7367c8e
Bug 1153649 part 3 - More OwningNonNull improvements; r=bz
2015-04-19 15:28:50 +03:00
Mike Hommey
44945d9d4c
Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
...
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Xidorn Quan
1935d96dc4
Bug 1127045 part 3 - Make nsTArray support reverse iterating. r=froydnj
2015-02-04 19:07:32 +11:00
Xidorn Quan
0b289c447b
Bug 1126552 part 1 - Make nsTArray support range-based for loops. r=froydnj
2015-02-04 19:07:32 +11:00
Xidorn Quan
d316290b3e
Bug 1126552 part 0 - Rename end to iend to avoid shadowing warnings. r=froydnj
2015-02-04 19:07:32 +11:00
Karl Tomlinson
8c857ddaa6
bug 976927 support nsAutoTArray::operator=(const nsTArray&) r=froydnj
2014-11-19 12:40:28 +13:00
Nicholas Nethercote
8fca324143
Bug 1048044 - Use exponential growth when growing an nsTArray. r=froydnj.
2014-10-29 20:34:33 -07:00
Georg Fritzsche
dc0977ccbf
Bug 1071489 - Make nsTArrays BinaryIndexOf use our unified binary search implementation. r=waldo
2014-09-23 13:15:53 +02:00
Georg Fritzsche
eb5c2aafa5
Bug 1067989 - Unify some more binary search uses. r=waldo
2014-09-17 15:46:24 +02:00
Ehsan Akhgari
4302516012
Bug 1065670 - Fix more bad implicit ctors in XPCOM; r=froydnj
2014-09-11 16:04:18 -04:00
Peter Van der Beken
be0d77ed0f
Bug 982212: Part 4 - Remove explicit from the nsTArray-constructor that takes a r-value and add MoveElementsFrom taking a r-value. r=nfroyd.
2014-09-02 14:20:14 +02:00