mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:27:36 +00:00
Misc: Replace "String(string_view)" with "string_view.to_string()"
StringView::to_string() was added in 917ccb1 but not actually used anywhere yet.
This commit is contained in:
parent
107ca2e4ba
commit
9dbab2d05e
10 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue