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
Peter Van der Beken
ff398c656f
Bug 982212: Part 1a - Implement r-value reference support for nsTArray constructors and operator=, make part 1 work on gcc 4.4. r=nfroyd.
2014-09-03 18:33:03 +02:00
Kyle Huey
83b8392625
Bug 982212: Part 1 - Implement r-value reference support for nsTArray constructors and operator=. r=nfroyd
2014-03-15 18:55:00 +01:00
Nicholas Nethercote
b35d1d1aa7
Bug 1058388 - Remove NS_COM_GLUE and IMETHOD_VISIBILITY. r=bsmedberg.
2014-08-27 15:47:27 -07:00
Neil Rashbrook
daab215685
Bug 1054320 Improve the new nsTArray rvalue reference methods r=froydnj
2014-08-28 00:18:42 +01:00
Birunthan Mohanathas
da27cbd66f
Bug 1046841 - Fix more style violations in previously touched .h files in xpcom/. r=froydnj
2014-08-25 12:17:24 -07:00
Trevor Saunders
393680860c
[PATCH] bug 1049781 - add move ctor version of
...
From 43dccd4d360dd2e43182c2f39002dc14567f15c0 Mon Sep 17 00:00:00 2001
nsTArray::InsertElementAt
---
xpcom/glue/nsTArray.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
2014-08-06 14:49:37 -04:00
Jeff Muizelaar
9d8eac9d0b
Bug 1044241. Discard tile back buffers that haven't been recently used. r=nical
...
Tracks tiles that have a back buffer with a nsExpirationTracker and discards
them after a while. This should help us claim back tile memory for tiles
that have stopped changing.
2014-07-31 23:25:37 -04:00
Jeff Muizelaar
29b448be98
Bug 1039521 - nsTArray: Add an AppendElement take taking a r-value reference. r=froydnj
...
This lets us store UniquePtr's in nsTArrays
2014-07-18 09:43:42 -04:00
Birunthan Mohanathas
8a4a4c8465
Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj
2014-06-30 08:39:45 -07:00
Birunthan Mohanathas
ce774b1fa6
Bug 1022456 - Convert xpcom/glue/ to Gecko style. r=froydnj
2014-06-26 18:35:39 -07:00
Carsten "Tomcat" Book
3ae13c19f6
Backed out changeset 1b81b771aee6 (bug 1017418)
2014-06-02 11:26:12 +02:00
Nicholas Nethercote
943db38f8f
Bug 1017418 (part 2) - Avoid more slop in nsTArray. r=froydnj.
2014-06-01 16:08:50 -07:00
Brian Smith
ddf8a3763b
Bug 1010634, Part 2: Fix compiler warnings in MFBT and XPCOM, r=ehsan
2014-05-29 20:18:29 -07:00