Replace JsonString::Ownership with bool

This commit is contained in:
Benoit Blanchon
2024-11-26 14:32:29 +01:00
parent 8931651317
commit ed5f890d28
9 changed files with 23 additions and 23 deletions

View File

@@ -101,7 +101,7 @@ TEST_CASE("adaptString()") {
}
SECTION("JsonString linked") {
JsonString orig("hello", JsonString::Ownership::Linked);
JsonString orig("hello", true);
auto s = adaptString(orig);
CHECK(s.isNull() == false);
@@ -110,7 +110,7 @@ TEST_CASE("adaptString()") {
}
SECTION("JsonString copied") {
JsonString orig("hello", JsonString::Ownership::Copied);
JsonString orig("hello", false);
auto s = adaptString(orig);
CHECK(s.isNull() == false);