diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-04 18:02:33 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-06 08:54:33 +0100 |
commit | 6e19ab2bbce0b113b628e6f8e9b5c0640053933e (patch) | |
tree | 372d21b2f5dcff112f5d0089559c6af5798680d4 /Userland/Applications/SoundPlayer/PlaylistWidget.cpp | |
parent | f74251606d74b504a1379ebb893fdb5529054ea5 (diff) | |
download | serenity-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/Applications/SoundPlayer/PlaylistWidget.cpp')
-rw-r--r-- | Userland/Applications/SoundPlayer/PlaylistWidget.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Applications/SoundPlayer/PlaylistWidget.cpp b/Userland/Applications/SoundPlayer/PlaylistWidget.cpp index b5881d7bd7..8ef466c6f9 100644 --- a/Userland/Applications/SoundPlayer/PlaylistWidget.cpp +++ b/Userland/Applications/SoundPlayer/PlaylistWidget.cpp @@ -56,24 +56,24 @@ GUI::Variant PlaylistModel::data(const GUI::ModelIndex& index, GUI::ModelRole ro return {}; } -String PlaylistModel::format_filesize(u64 size_in_bytes) +DeprecatedString PlaylistModel::format_filesize(u64 size_in_bytes) { if (size_in_bytes > GiB) - return String::formatted("{:.2f} GiB", (double)size_in_bytes / GiB); + return DeprecatedString::formatted("{:.2f} GiB", (double)size_in_bytes / GiB); else if (size_in_bytes > MiB) - return String::formatted("{:.2f} MiB", (double)size_in_bytes / MiB); + return DeprecatedString::formatted("{:.2f} MiB", (double)size_in_bytes / MiB); else if (size_in_bytes > KiB) - return String::formatted("{:.2f} KiB", (double)size_in_bytes / KiB); + return DeprecatedString::formatted("{:.2f} KiB", (double)size_in_bytes / KiB); else - return String::formatted("{} B", size_in_bytes); + return DeprecatedString::formatted("{} B", size_in_bytes); } -String PlaylistModel::format_duration(u32 duration_in_seconds) +DeprecatedString PlaylistModel::format_duration(u32 duration_in_seconds) { - return String::formatted("{:02}:{:02}:{:02}", duration_in_seconds / 3600, duration_in_seconds / 60, duration_in_seconds % 60); + return DeprecatedString::formatted("{:02}:{:02}:{:02}", duration_in_seconds / 3600, duration_in_seconds / 60, duration_in_seconds % 60); } -String PlaylistModel::column_name(int column) const +DeprecatedString PlaylistModel::column_name(int column) const { switch (column) { case 0: |