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/Libraries/LibCore/Group.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/Libraries/LibCore/Group.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/Group.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibCore/Group.cpp b/Userland/Libraries/LibCore/Group.cpp index 4649324188..8eff79cabd 100644 --- a/Userland/Libraries/LibCore/Group.cpp +++ b/Userland/Libraries/LibCore/Group.cpp @@ -16,7 +16,7 @@ namespace Core { -ErrorOr<String> Group::generate_group_file() const +ErrorOr<DeprecatedString> Group::generate_group_file() const { StringBuilder builder; @@ -32,13 +32,13 @@ ErrorOr<String> Group::generate_group_file() const for (auto const* gr = getgrent(); gr; gr = getgrent()) { #endif if (gr->gr_name == m_name) - builder.appendff("{}:x:{}:{}\n", m_name, m_id, String::join(',', m_members)); + builder.appendff("{}:x:{}:{}\n", m_name, m_id, DeprecatedString::join(',', m_members)); else { - Vector<String> members; + Vector<DeprecatedString> members; for (size_t i = 0; gr->gr_mem[i]; ++i) members.append(gr->gr_mem[i]); - builder.appendff("{}:x:{}:{}\n", gr->gr_name, gr->gr_gid, String::join(',', members)); + builder.appendff("{}:x:{}:{}\n", gr->gr_name, gr->gr_gid, DeprecatedString::join(',', members)); } } @@ -135,7 +135,7 @@ ErrorOr<Vector<Group>> Group::all() #else for (auto const* gr = getgrent(); gr; gr = getgrent()) { #endif - Vector<String> members; + Vector<DeprecatedString> members; for (size_t i = 0; gr->gr_mem[i]; ++i) members.append(gr->gr_mem[i]); @@ -148,7 +148,7 @@ ErrorOr<Vector<Group>> Group::all() return groups; } -Group::Group(String name, gid_t id, Vector<String> members) +Group::Group(DeprecatedString name, gid_t id, Vector<DeprecatedString> members) : m_name(move(name)) , m_id(id) , m_members(move(members)) |