diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-03-02 19:14:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 19:14:18 -0500 |
| commit | cbba1f2ba451f31e910d59fb9efbadc5e370c095 (patch) | |
| tree | cf34d86713e2f915a42ce4ece11b7da82b9d4454 /source/core/slang-offset-container.cpp | |
| parent | dbd8e8dc0847338a2a93d35385f48b5ce5671dd6 (diff) | |
Renamed UnownedStringSlice::size to getLength to make match String. (#1254)
Diffstat (limited to 'source/core/slang-offset-container.cpp')
| -rw-r--r-- | source/core/slang-offset-container.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/slang-offset-container.cpp b/source/core/slang-offset-container.cpp index 5fed2a452..75852c990 100644 --- a/source/core/slang-offset-container.cpp +++ b/source/core/slang-offset-container.cpp @@ -79,7 +79,7 @@ size_t OffsetString::calcEncodedSize(size_t size, uint8_t encode[kMaxSizeEncodeS /* static */size_t OffsetString::calcAllocationSize(const UnownedStringSlice& slice) { - return calcAllocationSize(slice.size()); + return calcAllocationSize(slice.getLength()); } UnownedStringSlice OffsetString::getSlice() const @@ -166,7 +166,7 @@ void* OffsetContainer::allocateAndZero(size_t size, size_t alignment) Offset32Ptr<OffsetString> OffsetContainer::newString(const UnownedStringSlice& slice) { - size_t stringSize = slice.size(); + size_t stringSize = slice.getLength(); uint8_t head[OffsetString::kMaxSizeEncodeSize]; size_t headSize = OffsetString::calcEncodedSize(stringSize, head); |
