1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibJS: Migrate DeprecatedString to String

This changes BasicBlock's constructor and create().
This commit is contained in:
Nick Hawke 2023-10-26 23:57:51 -04:00 committed by Andreas Kling
parent 4c915a9e67
commit 67566e5017
4 changed files with 14 additions and 12 deletions

View file

@ -4,18 +4,18 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/DeprecatedString.h>
#include <AK/String.h>
#include <LibJS/Bytecode/BasicBlock.h>
#include <LibJS/Bytecode/Op.h>
namespace JS::Bytecode {
NonnullOwnPtr<BasicBlock> BasicBlock::create(DeprecatedString name)
NonnullOwnPtr<BasicBlock> BasicBlock::create(String name)
{
return adopt_own(*new BasicBlock(move(name)));
}
BasicBlock::BasicBlock(DeprecatedString name)
BasicBlock::BasicBlock(String name)
: m_name(move(name))
{
}