aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-09-29 09:56:00 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-09-29 09:56:00 +0000
commitc39e1b2fdec48c5d1edee8cb4231e735a7872ac6 (patch)
treef68e9f2c95cfb02b54d9697d8b4a2ae0be2d546c
parent43c2a7b282eed7730836c86d1447547f96ef23cf (diff)
parent0f1f7591096ba51f96edc136f6790db97a7f237e (diff)
downloadmarisa-trie-c39e1b2fdec48c5d1edee8cb4231e735a7872ac6.tar.gz
Merge "Sync https://github.com/s-yata/marisa-trie/pull/32" am: 4dc2729a1c am: b2c0024b8a am: 0f1f759109
Original change: https://android-review.googlesource.com/c/platform/external/marisa-trie/+/1440831 Change-Id: I468c31f4fd5f580b29fd4b6112979cb635d61656
-rw-r--r--include/marisa/scoped-array.h2
-rw-r--r--include/marisa/scoped-ptr.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/marisa/scoped-array.h b/include/marisa/scoped-array.h
index 12b5b9e..34cefa4 100644
--- a/include/marisa/scoped-array.h
+++ b/include/marisa/scoped-array.h
@@ -16,7 +16,7 @@ class scoped_array {
}
void reset(T *array = NULL) {
- MARISA_THROW_IF((array != NULL) && (array == array_), MARISA_RESET_ERROR);
+ MARISA_DEBUG_IF((array != NULL) && (array == array_), MARISA_RESET_ERROR);
scoped_array(array).swap(*this);
}
diff --git a/include/marisa/scoped-ptr.h b/include/marisa/scoped-ptr.h
index 63d7a3d..abf48d8 100644
--- a/include/marisa/scoped-ptr.h
+++ b/include/marisa/scoped-ptr.h
@@ -16,7 +16,7 @@ class scoped_ptr {
}
void reset(T *ptr = NULL) {
- MARISA_THROW_IF((ptr != NULL) && (ptr == ptr_), MARISA_RESET_ERROR);
+ MARISA_DEBUG_IF((ptr != NULL) && (ptr == ptr_), MARISA_RESET_ERROR);
scoped_ptr(ptr).swap(*this);
}