mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:07:46 +00:00
Userland: Remove erroneous String -> char* -> StringView conversions
These were accidental (or leftover) uses of String::characters() to construct StringViews through its StringView(char const*) constructor. Since this constructor is due to be removed, this will no longer work. Plus this prevents strlen from being run on these strings unnecessarily.
This commit is contained in:
parent
60f6bc902b
commit
a3eeeaa6a1
3 changed files with 3 additions and 3 deletions
|
@ -113,7 +113,7 @@ void Emulator::setup_stack(Vector<ELF::AuxiliaryValue> aux_vector)
|
|||
Vector<u32> env_entries;
|
||||
|
||||
for (auto const& variable : m_environment) {
|
||||
m_cpu->push_string(variable.characters());
|
||||
m_cpu->push_string(variable.view());
|
||||
env_entries.append(m_cpu->esp().value());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue