From cbba1f2ba451f31e910d59fb9efbadc5e370c095 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 2 Mar 2020 19:14:18 -0500 Subject: Renamed UnownedStringSlice::size to getLength to make match String. (#1254) --- source/slang/slang-reflection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-reflection.cpp') 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(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(); } -- cgit v1.2.3