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 /tools/slang-test | |
| parent | dbd8e8dc0847338a2a93d35385f48b5ce5671dd6 (diff) | |
Renamed UnownedStringSlice::size to getLength to make match String. (#1254)
Diffstat (limited to 'tools/slang-test')
| -rw-r--r-- | tools/slang-test/slang-test-main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/slang-test/slang-test-main.cpp b/tools/slang-test/slang-test-main.cpp index 9f9ad527a..01655a4fe 100644 --- a/tools/slang-test/slang-test-main.cpp +++ b/tools/slang-test/slang-test-main.cpp @@ -568,7 +568,7 @@ static SlangResult _extractRenderTestRequirements(const CommandLine& cmdLine, Te for (const auto& arg: args) { Slang::UnownedStringSlice argSlice = arg.value.getUnownedSlice(); - if (argSlice.size() && argSlice[0] == '-') + if (argSlice.getLength() && argSlice[0] == '-') { // Look up the rendering API if set UnownedStringSlice argName = UnownedStringSlice(argSlice.begin() + 1, argSlice.end()); @@ -1918,7 +1918,7 @@ static SlangResult _extractProfileTime(const UnownedStringSlice& text, double& t { if (line.startsWith(lineStart)) { - UnownedStringSlice remaining(line.begin() + lineStart.size(), line.end()); + UnownedStringSlice remaining(line.begin() + lineStart.getLength(), line.end()); remaining.trim(); timeOut = StringToDouble(String(remaining)); @@ -1970,7 +1970,7 @@ TestResult runPerformanceProfile(TestContext* context, TestInput& input) static double _textToDouble(const UnownedStringSlice& slice) { - Index size = Index(slice.size()); + Index size = Index(slice.getLength()); // We have to zero terminate to be able to use atof const Index maxSize = 80; char buffer[maxSize + 1]; |
