summaryrefslogtreecommitdiff
path: root/Userland/Applets/Network/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applets/Network/main.cpp')
-rw-r--r--Userland/Applets/Network/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applets/Network/main.cpp b/Userland/Applets/Network/main.cpp
index dcc936bfea..b361d983e9 100644
--- a/Userland/Applets/Network/main.cpp
+++ b/Userland/Applets/Network/main.cpp
@@ -173,14 +173,14 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::unveil(nullptr, nullptr));
bool display_notifications = false;
- char const* name = nullptr;
+ StringView name;
Core::ArgsParser args_parser;
args_parser.add_option(display_notifications, "Display notifications", "display-notifications", 'd');
args_parser.add_option(name, "Applet name used by WindowServer.ini to set the applet order", "name", 'n', "name");
args_parser.parse(arguments);
- if (name == nullptr)
- name = "Network";
+ if (name.is_empty())
+ name = "Network"sv;
auto window = TRY(GUI::Window::try_create());
window->set_title(name);