mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:28:11 +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
|
@ -9,7 +9,7 @@
|
|||
#include "Presentation.h"
|
||||
#include <AK/JsonObject.h>
|
||||
|
||||
Slide::Slide(unsigned frame_count, Vector<NonnullRefPtr<SlideObject>> slide_objects, DeprecatedString title)
|
||||
Slide::Slide(unsigned frame_count, Vector<NonnullRefPtr<SlideObject>> slide_objects, ByteString title)
|
||||
: m_frame_count(move(frame_count))
|
||||
, m_slide_objects(move(slide_objects))
|
||||
, m_title(move(title))
|
||||
|
@ -19,7 +19,7 @@ Slide::Slide(unsigned frame_count, Vector<NonnullRefPtr<SlideObject>> slide_obje
|
|||
ErrorOr<Slide> Slide::parse_slide(JsonObject const& slide_json, unsigned slide_index)
|
||||
{
|
||||
// FIXME: Use the text with the "title" role for a title, if there is no title given.
|
||||
auto title = slide_json.get_deprecated_string("title"sv).value_or("Untitled slide");
|
||||
auto title = slide_json.get_byte_string("title"sv).value_or("Untitled slide");
|
||||
auto frame_count = slide_json.get_u32("frame_count"sv).value_or(1);
|
||||
auto maybe_slide_objects = slide_json.get_array("objects"sv);
|
||||
if (!maybe_slide_objects.has_value())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue