mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
parent
ad5d217e76
commit
8b1108e485
392 changed files with 978 additions and 978 deletions
|
@ -11,7 +11,7 @@
|
|||
extern bool g_report_to_debug;
|
||||
|
||||
template<typename... Ts>
|
||||
void reportln(const StringView& format, Ts... args)
|
||||
void reportln(StringView format, Ts... args)
|
||||
{
|
||||
if (g_report_to_debug) {
|
||||
AK::VariadicFormatParams variadic_format_params { args... };
|
||||
|
|
|
@ -196,7 +196,7 @@ void SoftCPU::write_memory256(X86::LogicalAddress address, ValueWithShadow<u256>
|
|||
m_emulator.mmu().write256(address, value);
|
||||
}
|
||||
|
||||
void SoftCPU::push_string(const StringView& string)
|
||||
void SoftCPU::push_string(StringView string)
|
||||
{
|
||||
size_t space_to_allocate = round_up_to_power_of_two(string.length() + 1, 16);
|
||||
set_esp({ esp().value() - space_to_allocate, esp().shadow() });
|
||||
|
|
|
@ -78,7 +78,7 @@ public:
|
|||
void push16(ValueWithShadow<u16>);
|
||||
ValueWithShadow<u16> pop16();
|
||||
|
||||
void push_string(const StringView&);
|
||||
void push_string(StringView);
|
||||
void push_buffer(const u8* data, size_t);
|
||||
|
||||
u16 segment(X86::SegmentRegister seg) const { return m_segment[(int)seg]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue