mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +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:
parent
2eacc7aec1
commit
f3db548a3d
316 changed files with 1177 additions and 1177 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <AK/Error.h>
|
||||
#include <AK/FlyString.h>
|
||||
#include <errno.h>
|
||||
|
||||
namespace Audio {
|
||||
|
@ -28,20 +28,20 @@ struct LoaderError {
|
|||
Category category { Category::Unknown };
|
||||
// Binary index: where in the file the error occurred.
|
||||
size_t index { 0 };
|
||||
FlyString description { DeprecatedString::empty() };
|
||||
DeprecatedFlyString description { DeprecatedString::empty() };
|
||||
|
||||
constexpr LoaderError() = default;
|
||||
LoaderError(Category category, size_t index, FlyString description)
|
||||
LoaderError(Category category, size_t index, DeprecatedFlyString description)
|
||||
: category(category)
|
||||
, index(index)
|
||||
, description(move(description))
|
||||
{
|
||||
}
|
||||
LoaderError(FlyString description)
|
||||
LoaderError(DeprecatedFlyString description)
|
||||
: description(move(description))
|
||||
{
|
||||
}
|
||||
LoaderError(Category category, FlyString description)
|
||||
LoaderError(Category category, DeprecatedFlyString description)
|
||||
: category(category)
|
||||
, description(move(description))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue