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:
parent
cae20d2aa9
commit
226383f45b
3 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue