mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 12:08:14 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
1615 changed files with 10257 additions and 10257 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
namespace PixelPaint {
|
||||
|
||||
ErrorOr<NonnullRefPtr<Layer>> Layer::create_with_size(Image& image, Gfx::IntSize size, DeprecatedString name)
|
||||
ErrorOr<NonnullRefPtr<Layer>> Layer::create_with_size(Image& image, Gfx::IntSize size, ByteString name)
|
||||
{
|
||||
VERIFY(!size.is_empty());
|
||||
|
||||
|
@ -29,7 +29,7 @@ ErrorOr<NonnullRefPtr<Layer>> Layer::create_with_size(Image& image, Gfx::IntSize
|
|||
return adopt_nonnull_ref_or_enomem(new (nothrow) Layer(image, move(bitmap), move(name)));
|
||||
}
|
||||
|
||||
ErrorOr<NonnullRefPtr<Layer>> Layer::create_with_bitmap(Image& image, NonnullRefPtr<Gfx::Bitmap> bitmap, DeprecatedString name)
|
||||
ErrorOr<NonnullRefPtr<Layer>> Layer::create_with_bitmap(Image& image, NonnullRefPtr<Gfx::Bitmap> bitmap, ByteString name)
|
||||
{
|
||||
VERIFY(!bitmap->size().is_empty());
|
||||
|
||||
|
@ -64,7 +64,7 @@ ErrorOr<NonnullRefPtr<Layer>> Layer::create_snapshot(Image& image, Layer const&
|
|||
return snapshot;
|
||||
}
|
||||
|
||||
Layer::Layer(Image& image, NonnullRefPtr<Gfx::Bitmap> bitmap, DeprecatedString name)
|
||||
Layer::Layer(Image& image, NonnullRefPtr<Gfx::Bitmap> bitmap, ByteString name)
|
||||
: m_image(image)
|
||||
, m_name(move(name))
|
||||
, m_content_bitmap(move(bitmap))
|
||||
|
@ -112,7 +112,7 @@ void Layer::set_opacity_percent(int opacity_percent)
|
|||
m_image.layer_did_modify_properties({}, *this);
|
||||
}
|
||||
|
||||
void Layer::set_name(DeprecatedString name)
|
||||
void Layer::set_name(ByteString name)
|
||||
{
|
||||
if (m_name == name)
|
||||
return;
|
||||
|
@ -486,7 +486,7 @@ Optional<Gfx::IntRect> Layer::editing_mask_bounding_rect() const
|
|||
*max_content_y - *min_content_y + 1
|
||||
};
|
||||
}
|
||||
ErrorOr<NonnullRefPtr<Layer>> Layer::duplicate(DeprecatedString name)
|
||||
ErrorOr<NonnullRefPtr<Layer>> Layer::duplicate(ByteString name)
|
||||
{
|
||||
auto duplicated_layer = TRY(Layer::create_snapshot(m_image, *this));
|
||||
duplicated_layer->m_name = move(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue