summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2020-07-27 14:03:56 -0700
committerDan Albert <danalbert@google.com>2020-07-28 15:58:25 -0700
commitac4500e67de510a3724b98f248e5cb8f3cc1eb26 (patch)
tree38d3d667077668818f5888ec86a41e0aa16950bf /libutils/Unicode.cpp
parentb0a9d0e703621152e6e82262b04b54ac54b3a315 (diff)
Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference Bug: http://b/161896447 Test: None Change-Id: I9e5a37a20012b2f7a8eac55701df03f7b7a9ab6c
Diffstat (limited to 'libutils/Unicode.cpp')
-rw-r--r--libutils/Unicode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libutils/Unicode.cpp b/libutils/Unicode.cpp
index b08e061c0..b6e457b04 100644
--- a/libutils/Unicode.cpp
+++ b/libutils/Unicode.cpp
@@ -162,9 +162,9 @@ int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t
if (index >= src_len) {
return -1;
}
- size_t dummy_index;
+ size_t unused_index;
if (next_index == nullptr) {
- next_index = &dummy_index;
+ next_index = &unused_index;
}
size_t num_read;
int32_t ret = utf32_at_internal(src + index, &num_read);