summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibIDL
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-06 01:12:49 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-06 08:54:33 +0100
commit57dc179b1fce5d4b7171311b04667debfe693095 (patch)
treea459d1aef92dc4e49bbf03b32621b1e7e30d4e64 /Userland/Libraries/LibIDL
parent6e19ab2bbce0b113b628e6f8e9b5c0640053933e (diff)
downloadserenity-57dc179b1fce5d4b7171311b04667debfe693095.zip
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.
Diffstat (limited to 'Userland/Libraries/LibIDL')
-rw-r--r--Userland/Libraries/LibIDL/IDLParser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibIDL/IDLParser.cpp b/Userland/Libraries/LibIDL/IDLParser.cpp
index 7a71c01bf2..e54d78861c 100644
--- a/Userland/Libraries/LibIDL/IDLParser.cpp
+++ b/Userland/Libraries/LibIDL/IDLParser.cpp
@@ -218,9 +218,9 @@ NonnullRefPtr<Type> Parser::parse_type()
builder.append(name);
if (is_parameterized_type)
- return adopt_ref(*new ParameterizedType(builder.to_string(), nullable, move(parameters)));
+ return adopt_ref(*new ParameterizedType(builder.to_deprecated_string(), nullable, move(parameters)));
- return adopt_ref(*new Type(builder.to_string(), nullable));
+ return adopt_ref(*new Type(builder.to_deprecated_string(), nullable));
}
void Parser::parse_attribute(HashMap<DeprecatedString, DeprecatedString>& extended_attributes, Interface& interface)
@@ -243,7 +243,7 @@ void Parser::parse_attribute(HashMap<DeprecatedString, DeprecatedString>& extend
assert_specific(';');
- auto name_as_string = name.to_string();
+ auto name_as_string = name.to_deprecated_string();
auto getter_callback_name = DeprecatedString::formatted("{}_getter", name_as_string.to_snakecase());
auto setter_callback_name = DeprecatedString::formatted("{}_setter", name_as_string.to_snakecase());