summaryrefslogtreecommitdiff
path: root/Userland/Utilities/paste.cpp
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2022-07-11 20:18:40 +0000
committerAndreas Kling <kling@serenityos.org>2022-07-12 23:11:35 +0200
commitfbc771efe99ef6c24fa6657f28bcfec7300da61e (patch)
treecb9bb5cd1604982edc1062a342f915829f5da1f7 /Userland/Utilities/paste.cpp
parentc8585b77d263d15807231cb8bd1345d2591b9495 (diff)
downloadserenity-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/Utilities/paste.cpp')
-rw-r--r--Userland/Utilities/paste.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/paste.cpp b/Userland/Utilities/paste.cpp
index c453ac4e49..ba0926525d 100644
--- a/Userland/Utilities/paste.cpp
+++ b/Userland/Utilities/paste.cpp
@@ -67,7 +67,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto& clipboard = GUI::Clipboard::the();
if (watch) {
- watch_command.append(nullptr);
+ watch_command.append({});
clipboard.on_change = [&](String const&) {
// Technically there's a race here...