diff options
| author | 2023-08-18 21:54:33 +0000 | |
|---|---|---|
| committer | 2023-08-18 21:54:33 +0000 | |
| commit | e1ee1aab9f99d05ca97dee3701afb894a6129446 (patch) | |
| tree | 6c3998b030418d97643643d99748d6d325ecab3f /tools/aapt/ResourceIdCache.cpp | |
| parent | 3b35e9d4c877106858de12f30e5cff7bb3e8cbbe (diff) | |
| parent | d2a698351d13901b95f836df09e9463344f6ab0e (diff) | |
Merge "Use String8/16 c_str [tools]" into main
Diffstat (limited to 'tools/aapt/ResourceIdCache.cpp')
| -rw-r--r-- | tools/aapt/ResourceIdCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt/ResourceIdCache.cpp b/tools/aapt/ResourceIdCache.cpp index 8835fb0130a3..1c7788d70053 100644 --- a/tools/aapt/ResourceIdCache.cpp +++ b/tools/aapt/ResourceIdCache.cpp @@ -37,7 +37,7 @@ static inline uint32_t hashround(uint32_t hash, int c) { static uint32_t hash(const android::String16& hashableString) { uint32_t hash = 5381; - const char16_t* str = hashableString.string(); + const char16_t* str = hashableString.c_str(); while (int c = *str++) hash = hashround(hash, c); return hash; } |