Skip to content

Commit 9ff8e71

Browse files
committed
s/uses_refcount/uses_refcount/
1 parent a5578de commit 9ff8e71

File tree

1 file changed

+4
-4
lines changed
  • system/include/emscripten

1 file changed

+4
-4
lines changed

system/include/emscripten/val.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,13 @@ class val {
386386
}
387387

388388
val(const val& v) : val(v.as_handle()) {
389-
if (uses_refcount()) {
389+
if (uses_ref_count()) {
390390
internal::_emval_incref(handle);
391391
}
392392
}
393393

394394
~val() {
395-
if (uses_refcount()) {
395+
if (uses_ref_count()) {
396396
internal::_emval_decref(as_handle());
397397
handle = 0;
398398
}
@@ -642,7 +642,7 @@ class val {
642642

643643
// Whether this value is a uses incref/decref (true) or is a special reserved
644644
// value (false).
645-
bool uses_refcount() const {
645+
bool uses_ref_count() const {
646646
return handle > reinterpret_cast<EM_VAL>(internal::_EMVAL_LAST_RESERVED_HANDLE);
647647
}
648648

@@ -813,7 +813,7 @@ struct BindingType<T, typename std::enable_if<std::is_base_of<val, T>::value &&
813813
// reference count.
814814
static WireType toWireType(const val& v) {
815815
EM_VAL handle = v.as_handle();
816-
if (v.uses_refcount()) {
816+
if (v.uses_ref_count()) {
817817
_emval_incref(handle);
818818
}
819819
return handle;

0 commit comments

Comments
 (0)