diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2022-07-11 20:18:40 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-12 23:11:35 +0200 |
commit | fbc771efe99ef6c24fa6657f28bcfec7300da61e (patch) | |
tree | cb9bb5cd1604982edc1062a342f915829f5da1f7 /Userland/Libraries/LibThreading | |
parent | c8585b77d263d15807231cb8bd1345d2591b9495 (diff) | |
download | serenity-fbc771efe99ef6c24fa6657f28bcfec7300da61e.zip |
Everywhere: Use default StringView constructor over nullptr
While null StringViews are just as bad, these prevent the removal of
StringView(char const*) as that constructor accepts a nullptr.
No functional changes.
Diffstat (limited to 'Userland/Libraries/LibThreading')
-rw-r--r-- | Userland/Libraries/LibThreading/Thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibThreading/Thread.h b/Userland/Libraries/LibThreading/Thread.h index ab9c18b365..612403846d 100644 --- a/Userland/Libraries/LibThreading/Thread.h +++ b/Userland/Libraries/LibThreading/Thread.h @@ -34,7 +34,7 @@ public: pthread_t tid() const { return m_tid; } private: - explicit Thread(Function<intptr_t()> action, StringView thread_name = nullptr); + explicit Thread(Function<intptr_t()> action, StringView thread_name = {}); Function<intptr_t()> m_action; pthread_t m_tid { 0 }; String m_thread_name; |