summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-05-06 18:18:24 +0100
committerAndreas Kling <kling@serenityos.org>2020-05-06 19:28:59 +0200
commit9dbab2d05e2893584dc4f9b42741fc0597718966 (patch)
tree1627952ac73604757a6791d1de0437bd954a2791 /AK
parent107ca2e4ba8f88f39f58c4a92d238ea642aa0d39 (diff)
downloadserenity-9dbab2d05e2893584dc4f9b42741fc0597718966.zip
Misc: Replace "String(string_view)" with "string_view.to_string()"
StringView::to_string() was added in 917ccb1 but not actually used anywhere yet.
Diffstat (limited to 'AK')
-rw-r--r--AK/Demangle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Demangle.h b/AK/Demangle.h
index dbba1b6c7e..42dc1cdae4 100644
--- a/AK/Demangle.h
+++ b/AK/Demangle.h
@@ -41,7 +41,7 @@ inline String demangle(const StringView& name)
return name;
#else
int status = 0;
- auto* demangled_name = abi::__cxa_demangle(String(name).characters(), nullptr, nullptr, &status);
+ auto* demangled_name = abi::__cxa_demangle(name.to_string().characters(), nullptr, nullptr, &status);
auto string = String(status == 0 ? demangled_name : name);
if (status == 0)
kfree(demangled_name);