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/slang/slang-reflection.cpp | |
| parent | dbd8e8dc0847338a2a93d35385f48b5ce5671dd6 (diff) | |
Renamed UnownedStringSlice::size to getLength to make match String. (#1254)
Diffstat (limited to 'source/slang/slang-reflection.cpp')
| -rw-r--r-- | source/slang/slang-reflection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-reflection.cpp b/source/slang/slang-reflection.cpp index 037bc2d97..fe709222b 100644 --- a/source/slang/slang-reflection.cpp +++ b/source/slang/slang-reflection.cpp @@ -183,7 +183,7 @@ SLANG_API const char* spReflectionUserAttribute_GetArgumentValueString(SlangRefl if (auto cexpr = as<StringLiteralExpr>(userAttr->args[index])) { if (bufLen) - *bufLen = cexpr->token.Content.size(); + *bufLen = cexpr->token.Content.getLength(); return cexpr->token.Content.begin(); } return nullptr; @@ -1564,7 +1564,7 @@ SLANG_API const char* spReflection_getHashedString( auto slices = programLayout->hashedStringLiteralPool.getAdded(); auto slice = slices[Index(index)]; - *outCount = slice.size(); + *outCount = slice.getLength(); return slice.begin(); } |
