summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Platform
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/Libraries/LibWeb/Platform
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/Libraries/LibWeb/Platform')
-rw-r--r--Userland/Libraries/LibWeb/Platform/FontPlugin.h2
-rw-r--r--Userland/Libraries/LibWeb/Platform/FontPluginSerenity.cpp4
-rw-r--r--Userland/Libraries/LibWeb/Platform/FontPluginSerenity.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Platform/FontPlugin.h b/Userland/Libraries/LibWeb/Platform/FontPlugin.h
index e696e982e8..825a54a717 100644
--- a/Userland/Libraries/LibWeb/Platform/FontPlugin.h
+++ b/Userland/Libraries/LibWeb/Platform/FontPlugin.h
@@ -34,7 +34,7 @@ public:
virtual Gfx::Font& default_font() = 0;
virtual Gfx::Font& default_fixed_width_font() = 0;
- virtual String generic_font_name(GenericFont) = 0;
+ virtual DeprecatedString generic_font_name(GenericFont) = 0;
};
}
diff --git a/Userland/Libraries/LibWeb/Platform/FontPluginSerenity.cpp b/Userland/Libraries/LibWeb/Platform/FontPluginSerenity.cpp
index 4d588f47d3..9aa29b8eaa 100644
--- a/Userland/Libraries/LibWeb/Platform/FontPluginSerenity.cpp
+++ b/Userland/Libraries/LibWeb/Platform/FontPluginSerenity.cpp
@@ -5,7 +5,7 @@
*/
#include "FontPluginSerenity.h"
-#include <AK/String.h>
+#include <AK/DeprecatedString.h>
#include <LibGfx/Font/FontDatabase.h>
namespace Web::Platform {
@@ -26,7 +26,7 @@ Gfx::Font& FontPluginSerenity::default_fixed_width_font()
return Gfx::FontDatabase::default_fixed_width_font();
}
-String FontPluginSerenity::generic_font_name(GenericFont generic_font)
+DeprecatedString FontPluginSerenity::generic_font_name(GenericFont generic_font)
{
// FIXME: Replace hard-coded font names with a relevant call to FontDatabase.
// Currently, we cannot request the default font's name, or request it at a specific size and weight.
diff --git a/Userland/Libraries/LibWeb/Platform/FontPluginSerenity.h b/Userland/Libraries/LibWeb/Platform/FontPluginSerenity.h
index 9ea8c0a1be..fccb3112ee 100644
--- a/Userland/Libraries/LibWeb/Platform/FontPluginSerenity.h
+++ b/Userland/Libraries/LibWeb/Platform/FontPluginSerenity.h
@@ -18,7 +18,7 @@ public:
virtual Gfx::Font& default_font() override;
virtual Gfx::Font& default_fixed_width_font() override;
- virtual String generic_font_name(GenericFont) override;
+ virtual DeprecatedString generic_font_name(GenericFont) override;
};
}