summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/main.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-04 18:02:33 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-06 08:54:33 +0100
commit6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch)
tree372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/DevTools/HackStudio/main.cpp
parentf74251606d74b504a1379ebb893fdb5529054ea5 (diff)
downloadserenity-6e19ab2bbce0b113b628e6f8e9b5c0640053933e.zip
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 :^)
Diffstat (limited to 'Userland/DevTools/HackStudio/main.cpp')
-rw-r--r--Userland/DevTools/HackStudio/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/DevTools/HackStudio/main.cpp b/Userland/DevTools/HackStudio/main.cpp
index 14900079a8..c237cec69a 100644
--- a/Userland/DevTools/HackStudio/main.cpp
+++ b/Userland/DevTools/HackStudio/main.cpp
@@ -32,7 +32,7 @@ static WeakPtr<HackStudioWidget> s_hack_studio_widget;
static bool make_is_available();
static void notify_make_not_available();
static void update_path_environment_variable();
-static Optional<String> last_opened_project_path();
+static Optional<DeprecatedString> last_opened_project_path();
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
@@ -71,7 +71,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto hack_studio_widget = TRY(window->try_set_main_widget<HackStudioWidget>(project_path));
s_hack_studio_widget = hack_studio_widget;
- window->set_title(String::formatted("{} - Hack Studio", hack_studio_widget->project().name()));
+ window->set_title(DeprecatedString::formatted("{} - Hack Studio", hack_studio_widget->project().name()));
hack_studio_widget->initialize_menubar(*window);
@@ -132,7 +132,7 @@ static void update_path_environment_variable()
setenv("PATH", path.to_string().characters(), true);
}
-static Optional<String> last_opened_project_path()
+static Optional<DeprecatedString> last_opened_project_path()
{
auto projects = HackStudioWidget::read_recent_projects();
if (projects.size() == 0)
@@ -151,12 +151,12 @@ GUI::TextEditor& current_editor()
return s_hack_studio_widget->current_editor();
}
-void open_file(String const& filename)
+void open_file(DeprecatedString const& filename)
{
s_hack_studio_widget->open_file(filename);
}
-void open_file(String const& filename, size_t line, size_t column)
+void open_file(DeprecatedString const& filename, size_t line, size_t column)
{
s_hack_studio_widget->open_file(filename, line, column);
}
@@ -173,7 +173,7 @@ Project& project()
return s_hack_studio_widget->project();
}
-String currently_open_file()
+DeprecatedString currently_open_file()
{
if (!s_hack_studio_widget)
return {};