mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
UserspaceEmulator: Fix after add_positional_argument API change :^)
Get UE compiling again after the Vector<String> API was changed to Vector<StringView>.
This commit is contained in:
parent
957f54d96f
commit
f807796380
Notes:
sideshowbarker
2024-07-18 00:38:33 +09:00
Author: https://github.com/bgianfo
Commit: f807796380
Pull-request: https://github.com/SerenityOS/serenity/pull/11091
3 changed files with 5 additions and 5 deletions
|
@ -41,7 +41,7 @@ Emulator& Emulator::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
Emulator::Emulator(String const& executable_path, Vector<String> const& arguments, Vector<String> const& environment)
|
||||
Emulator::Emulator(String const& executable_path, Vector<StringView> const& arguments, Vector<String> const& environment)
|
||||
: m_executable_path(executable_path)
|
||||
, m_arguments(arguments)
|
||||
, m_environment(environment)
|
||||
|
@ -103,7 +103,7 @@ void Emulator::setup_stack(Vector<ELF::AuxiliaryValue> aux_vector)
|
|||
Vector<u32> argv_entries;
|
||||
|
||||
for (auto& argument : m_arguments) {
|
||||
m_cpu.push_string(argument.characters());
|
||||
m_cpu.push_string(argument);
|
||||
argv_entries.append(m_cpu.esp().value());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue