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:
parent
4c915a9e67
commit
67566e5017
4 changed files with 14 additions and 12 deletions
|
@ -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))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue