diff options
| author | Tyge Løvset <[email protected]> | 2022-04-24 23:53:56 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-24 23:53:56 +0200 |
| commit | 1ebbd367675a4a25c82b27da75301846fa315f4c (patch) | |
| tree | 53c2947afaac64ac6505d45bd577a9843241f029 /benchmarks/misc/string_bench_STC.cpp | |
| parent | 81b541b85f85b48660ceb461b851f1fb09d68344 (diff) | |
| download | STC-modified-1ebbd367675a4a25c82b27da75301846fa315f4c.tar.gz STC-modified-1ebbd367675a4a25c82b27da75301846fa315f4c.zip | |
Updated docs to use cstr_str(&s) instead of s.str
Diffstat (limited to 'benchmarks/misc/string_bench_STC.cpp')
| -rw-r--r-- | benchmarks/misc/string_bench_STC.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmarks/misc/string_bench_STC.cpp b/benchmarks/misc/string_bench_STC.cpp index ed0e3243..d5b3a306 100644 --- a/benchmarks/misc/string_bench_STC.cpp +++ b/benchmarks/misc/string_bench_STC.cpp @@ -69,7 +69,7 @@ void initShortStringVec(cvec_str* vs, cvec_sv* vsv) cvec_str_clear(vs); cvec_sv_clear(vsv); - *vs = read_file("names.txt"); + cvec_str_copy(vs, read_file("names.txt")); /* cvec_str_emplace_back(vs, "Susan"); cvec_str_emplace_back(vs, "Jason"); @@ -110,11 +110,11 @@ void initLongStringVec(cvec_str* vs, cvec_sv* vsv) cvec_str_clear(vs); cvec_sv_clear(vsv); - *vs = read_file("names.txt"); + cvec_str_copy(vs, read_file("names.txt")); c_foreach (i, cvec_str, *vs) { - cstr_append_s(i.ref, *i.ref); - cstr_append_s(i.ref, *i.ref); - cstr_append_s(i.ref, *i.ref); + cstr_append_s(i.ref, *i.ref); + cstr_append_s(i.ref, *i.ref); + cstr_append_s(i.ref, *i.ref); } /* cvec_str_emplace_back(vs, "Susan Susan Susan Susan Susan Susan"); |
