1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:17:35 +00:00

LibELF: Use StringView to carry temporary strings in auxiliary vector

Let's not force clients to provide a String.
This commit is contained in:
Andreas Kling 2021-09-07 13:19:40 +02:00
parent cae20d2aa9
commit 226383f45b
3 changed files with 7 additions and 7 deletions

View file

@ -89,7 +89,7 @@ struct AuxiliaryValue {
auxv.a_type = type;
auxv.a_un.a_ptr = (void*)ptr;
}
AuxiliaryValue(Type type, String string)
AuxiliaryValue(Type type, StringView string)
{
auxv.a_type = type;
auxv.a_un.a_ptr = nullptr;
@ -97,7 +97,7 @@ struct AuxiliaryValue {
}
auxv_t auxv {};
String optional_string;
StringView optional_string;
};
}