From 57dc179b1fce5d4b7171311b04667debfe693095 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 6 Dec 2022 01:12:49 +0000 Subject: Everywhere: Rename to_{string => deprecated_string}() where applicable This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO. --- Tests/AK/TestJSON.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Tests/AK/TestJSON.cpp') diff --git a/Tests/AK/TestJSON.cpp b/Tests/AK/TestJSON.cpp index efae314446..a04c3bcf92 100644 --- a/Tests/AK/TestJSON.cpp +++ b/Tests/AK/TestJSON.cpp @@ -40,7 +40,7 @@ TEST_CASE(load_form) EXPECT(form_json.is_object()); - auto name = form_json.as_object().get("name"sv).to_string(); + auto name = form_json.as_object().get("name"sv).to_deprecated_string(); EXPECT_EQ(name, "Form1"); @@ -111,13 +111,13 @@ TEST_CASE(json_duplicate_keys) json.set("test", "foo"); json.set("test", "bar"); json.set("test", "baz"); - EXPECT_EQ(json.to_string(), "{\"test\":\"baz\"}"); + EXPECT_EQ(json.to_deprecated_string(), "{\"test\":\"baz\"}"); } TEST_CASE(json_u64_roundtrip) { auto big_value = 0xffffffffffffffffull; - auto json = JsonValue(big_value).to_string(); + auto json = JsonValue(big_value).to_deprecated_string(); auto value = JsonValue::from_string(json); EXPECT_EQ_FORCE(value.is_error(), false); EXPECT_EQ(value.value().as_u64(), big_value); -- cgit v1.2.3