diff options
author | Elliott Hughes <enh@google.com> | 2021-04-15 15:18:54 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-04-15 15:18:54 -0700 |
commit | 4b7b4d6d7b43b42a86cb17a72df0d810f0cb4662 (patch) | |
tree | 66cc09faf0dac99462d35d70069fc6d649117b25 /libutils/String8.cpp | |
parent | 5e89a35ae39c6416157d870eab17ecb275852e63 (diff) |
Remove move dead code.
Test: treehugger
Change-Id: I6a23b19d078400dfe90329a49ae1abbcb24ef2bf
Diffstat (limited to 'libutils/String8.cpp')
-rw-r--r-- | libutils/String8.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libutils/String8.cpp b/libutils/String8.cpp index 2974aa300..195e122c6 100644 --- a/libutils/String8.cpp +++ b/libutils/String8.cpp @@ -25,6 +25,8 @@ #include <ctype.h> +#include <string> + #include "SharedBuffer.h" /* @@ -163,9 +165,7 @@ String8::String8(const char16_t* o, size_t len) } String8::String8(const char32_t* o) - : mString(allocFromUTF32(o, strlen32(o))) -{ -} + : mString(allocFromUTF32(o, std::char_traits<char32_t>::length(o))) {} String8::String8(const char32_t* o, size_t len) : mString(allocFromUTF32(o, len)) |