mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +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
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
|
@ -233,7 +233,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
{
|
||||
TRY(Core::System::pledge("stdio rpath"));
|
||||
|
||||
String path {};
|
||||
DeprecatedString path {};
|
||||
static bool display_all = false;
|
||||
static bool display_elf_header = false;
|
||||
static bool display_program_headers = false;
|
||||
|
@ -471,9 +471,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return IterationDecision::Break;
|
||||
});
|
||||
|
||||
Vector<String> libraries;
|
||||
Vector<DeprecatedString> libraries;
|
||||
object->for_each_needed_library([&libraries](StringView entry) {
|
||||
libraries.append(String::formatted("{}", entry));
|
||||
libraries.append(DeprecatedString::formatted("{}", entry));
|
||||
});
|
||||
|
||||
auto library_index = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue