Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2020-10-08 14:04:31 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2020-10-08 14:04:31 +0300
commit04826c2e67404ec63782a0025b929c7d717ea1fd (patch)
treeb52837073da8c390ead9ef0e8399da17f245bc47 /test/tests/reduce.cpp
parente8f25ff3646124c4090a3413bfb43751b680a3ff (diff)
Long, long round of refactoring path_view to match latest P1030 draft normative wording. Not done yet however, so this is a wip commit.
Diffstat (limited to 'test/tests/reduce.cpp')
-rw-r--r--test/tests/reduce.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/tests/reduce.cpp b/test/tests/reduce.cpp
index 88aad648..c46745a1 100644
--- a/test/tests/reduce.cpp
+++ b/test/tests/reduce.cpp
@@ -78,7 +78,9 @@ static inline void TestReduce()
to_hex_string(buffer + 1, 8, (const char *) &c, 4);
buffer[9] = 0;
}
- auto h = directory_handle::directory(dirh, path_view(buffer, 9, true), directory_handle::mode::write, directory_handle::creation::if_needed).value();
+ auto h =
+ directory_handle::directory(dirh, path_view(buffer, 9, path_view::zero_terminated), directory_handle::mode::write, directory_handle::creation::if_needed)
+ .value();
entries_created++;
for(size_t n = 0; n < file_entries; n++)
{
@@ -86,7 +88,7 @@ static inline void TestReduce()
buffer[0] = 'f';
to_hex_string(buffer + 1, 2, (const char *) &c, 1);
buffer[3] = 0;
- file_handle::file(h, path_view(buffer, 3, true), file_handle::mode::write, file_handle::creation::if_needed).value();
+ file_handle::file(h, path_view(buffer, 3, path_view::zero_terminated), file_handle::mode::write, file_handle::creation::if_needed).value();
entries_created++;
}
dirhs.emplace_back(std::move(h));