Bug 1120062 - Part 2: Remove use of IsNullPointer. r=waldo

This commit is contained in:
Masatoshi Kimura
2015-01-15 02:09:11 +09:00
parent 1f256783b8
commit 1ac9001f06
6 changed files with 35 additions and 168 deletions

View File

@@ -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;