mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
AK: Add String::copy(BufferType) helper.
This will create a String from any BufferType that has data() and size().
This commit is contained in:
parent
5eedb22834
commit
ab94a6be00
Notes:
sideshowbarker
2024-07-19 14:38:41 +09:00
Author: https://github.com/awesomekling
Commit: ab94a6be00
11 changed files with 31 additions and 27 deletions
|
@ -320,7 +320,7 @@ void VirtualConsole::escape$J(const Vector<unsigned>& params)
|
|||
|
||||
void VirtualConsole::execute_escape_sequence(byte final)
|
||||
{
|
||||
auto paramparts = String((const char*)m_parameters.data(), m_parameters.size()).split(';');
|
||||
auto paramparts = String::copy(m_parameters).split(';');
|
||||
Vector<unsigned> params;
|
||||
for (auto& parampart : paramparts) {
|
||||
bool ok;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue