mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibJS: Migrate DeprecatedString to String
This changes BasicBlock's constructor and create().
This commit is contained in:
committed by
Andreas Kling
parent
4c915a9e67
commit
67566e5017
@@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user