mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:47:34 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -14,7 +14,7 @@
|
|||
struct FlacTest : Test::TestCase {
|
||||
FlacTest(LexicalPath path)
|
||||
: Test::TestCase(
|
||||
String::formatted("flac_spec_test_{}", path.basename()), [this]() { run(); }, false)
|
||||
DeprecatedString::formatted("flac_spec_test_{}", path.basename()), [this]() { run(); }, false)
|
||||
, m_path(std::move(path))
|
||||
{
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ struct FlacTest : Test::TestCase {
|
|||
{
|
||||
auto result = Audio::FlacLoaderPlugin::try_create(m_path.string());
|
||||
if (result.is_error()) {
|
||||
FAIL(String::formatted("{} (at {})", result.error().description, result.error().index));
|
||||
FAIL(DeprecatedString::formatted("{} (at {})", result.error().description, result.error().index));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ struct FlacTest : Test::TestCase {
|
|||
while (true) {
|
||||
auto maybe_samples = loader->get_more_samples(2 * MiB);
|
||||
if (maybe_samples.is_error()) {
|
||||
FAIL(String::formatted("{} (at {})", maybe_samples.error().description, maybe_samples.error().index));
|
||||
FAIL(DeprecatedString::formatted("{} (at {})", maybe_samples.error().description, maybe_samples.error().index));
|
||||
return;
|
||||
}
|
||||
if (maybe_samples.value().is_empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue