mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-22 21:37:22 +00:00
AK+Everywhere: Rename FlyString to DeprecatedFlyString
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so let's rename it to A) match the name of DeprecatedString, B) write a new FlyString class that is tied to String.
This commit is contained in:
committed by
Linus Groh
parent
2eacc7aec1
commit
f3db548a3d
@@ -8,7 +8,7 @@
|
||||
|
||||
namespace JS::Bytecode {
|
||||
|
||||
IdentifierTableIndex IdentifierTable::insert(FlyString string)
|
||||
IdentifierTableIndex IdentifierTable::insert(DeprecatedFlyString string)
|
||||
{
|
||||
for (size_t i = 0; i < m_identifiers.size(); i++) {
|
||||
if (m_identifiers[i] == string)
|
||||
@@ -18,7 +18,7 @@ IdentifierTableIndex IdentifierTable::insert(FlyString string)
|
||||
return m_identifiers.size() - 1;
|
||||
}
|
||||
|
||||
FlyString const& IdentifierTable::get(IdentifierTableIndex index) const
|
||||
DeprecatedFlyString const& IdentifierTable::get(IdentifierTableIndex index) const
|
||||
{
|
||||
return m_identifiers[index.value()];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user