diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Utilities/find.cpp | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Utilities/find.cpp')
-rw-r--r-- | Userland/Utilities/find.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Utilities/find.cpp b/Userland/Utilities/find.cpp index aee5d9544c..5e45359228 100644 --- a/Userland/Utilities/find.cpp +++ b/Userland/Utilities/find.cpp @@ -44,7 +44,7 @@ struct FileData { // The parent directory of the file. int dirfd { -1 }; // The file's basename, relative to the directory. - const char* basename { nullptr }; + char const* basename { nullptr }; // Optionally, cached information as returned by stat/lstat/fstatat. struct stat stat { }; @@ -110,7 +110,7 @@ private: class TypeCommand final : public Command { public: - TypeCommand(const char* arg) + TypeCommand(char const* arg) { StringView type = arg; if (type.length() != 1 || !StringView("bcdlpfs").contains(type[0])) @@ -155,7 +155,7 @@ private: class LinksCommand final : public StatCommand { public: - LinksCommand(const char* arg) + LinksCommand(char const* arg) { auto number = StringView(arg).to_uint(); if (!number.has_value()) @@ -174,7 +174,7 @@ private: class UserCommand final : public StatCommand { public: - UserCommand(const char* arg) + UserCommand(char const* arg) { if (struct passwd* passwd = getpwnam(arg)) { m_uid = passwd->pw_uid; @@ -198,7 +198,7 @@ private: class GroupCommand final : public StatCommand { public: - GroupCommand(const char* arg) + GroupCommand(char const* arg) { if (struct group* gr = getgrnam(arg)) { m_gid = gr->gr_gid; @@ -222,7 +222,7 @@ private: class SizeCommand final : public StatCommand { public: - SizeCommand(const char* arg) + SizeCommand(char const* arg) { StringView view = arg; if (view.ends_with('c')) { @@ -251,7 +251,7 @@ private: class NameCommand : public Command { public: - NameCommand(const char* pattern, CaseSensitivity case_sensitivity) + NameCommand(char const* pattern, CaseSensitivity case_sensitivity) : m_pattern(pattern) , m_case_sensitivity(case_sensitivity) { |