mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 251277 add a Clear() function to remove all elements from an nsValueArray
r=bsmedberg sr=dougt
This commit is contained in:
parent
7f707d30dd
commit
f59c8b4564
@ -83,6 +83,11 @@ class NS_COM nsValueArray {
|
||||
|
||||
void Compact();
|
||||
|
||||
// Removes all elements from this array
|
||||
inline void Clear() {
|
||||
mCount = 0;
|
||||
}
|
||||
|
||||
//
|
||||
// Array access.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user