aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-09-29 09:01:01 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-09-29 09:01:01 +0000
commit4dc2729a1cbfb01e11b1429ce81d59413c33b405 (patch)
treef68e9f2c95cfb02b54d9697d8b4a2ae0be2d546c
parentcdb7a341d4cf0b3540a1774ac97b321b97945e47 (diff)
parent54417d28a5273a8d759b28882a0c96335e192756 (diff)
downloadmarisa-trie-4dc2729a1cbfb01e11b1429ce81d59413c33b405.tar.gz
Merge "Sync https://github.com/s-yata/marisa-trie/pull/32"platform-tools-30.0.5
-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);
}