Bug 1120062 - Part 2: Remove use of IsNullPointer. r=waldo
This commit is contained in:
@@ -91,9 +91,8 @@ class autoJArray {
|
||||
arr = other.arr;
|
||||
length = other.length;
|
||||
}
|
||||
void operator=(decltype(nullptr) n) {
|
||||
void operator=(decltype(nullptr)) {
|
||||
// Make assigning null to an array in Java delete the buffer in C++
|
||||
MOZ_ASSERT(n == nullptr);
|
||||
delete[] arr;
|
||||
arr = nullptr;
|
||||
length = 0;
|
||||
|
||||
Reference in New Issue
Block a user