mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +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
|
@ -20,28 +20,28 @@ class Project {
|
|||
AK_MAKE_NONMOVABLE(Project);
|
||||
|
||||
public:
|
||||
static OwnPtr<Project> open_with_root_path(String const& root_path);
|
||||
static OwnPtr<Project> open_with_root_path(DeprecatedString const& root_path);
|
||||
|
||||
GUI::FileSystemModel& model() { return *m_model; }
|
||||
const GUI::FileSystemModel& model() const { return *m_model; }
|
||||
String name() const { return LexicalPath::basename(m_root_path); }
|
||||
String root_path() const { return m_root_path; }
|
||||
DeprecatedString name() const { return LexicalPath::basename(m_root_path); }
|
||||
DeprecatedString root_path() const { return m_root_path; }
|
||||
|
||||
NonnullRefPtr<ProjectFile> create_file(String const& path) const;
|
||||
NonnullRefPtr<ProjectFile> create_file(DeprecatedString const& path) const;
|
||||
|
||||
void for_each_text_file(Function<void(ProjectFile const&)>) const;
|
||||
String to_absolute_path(String const&) const;
|
||||
DeprecatedString to_absolute_path(DeprecatedString const&) const;
|
||||
bool project_is_serenity() const;
|
||||
|
||||
static constexpr auto config_file_path = ".hackstudio/config.json"sv;
|
||||
NonnullOwnPtr<ProjectConfig> config() const;
|
||||
|
||||
private:
|
||||
explicit Project(String const& root_path);
|
||||
explicit Project(DeprecatedString const& root_path);
|
||||
|
||||
RefPtr<GUI::FileSystemModel> m_model;
|
||||
|
||||
String m_root_path;
|
||||
DeprecatedString m_root_path;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue