From f624a03076b8d838de7dddfb07c0113dba734a67 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 11 Sep 2024 11:38:55 +0200 Subject: [PATCH] Options, ui/Options: add explicit defaults to all fields --- src/Options.hxx | 14 +++++++------- src/ui/Options.hxx | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Options.hxx b/src/Options.hxx index 5e2a5db9..f1bcb31d 100644 --- a/src/Options.hxx +++ b/src/Options.hxx @@ -37,13 +37,13 @@ struct Options { std::vector library_page_tags{MPD_TAG_ARTIST, MPD_TAG_ALBUM}; #endif - std::chrono::steady_clock::duration hide_cursor; + std::chrono::steady_clock::duration hide_cursor{0}; std::chrono::steady_clock::duration status_message_time = std::chrono::seconds(3); - int port; + int port = 0; int timeout_ms = 0; int crossfade_time = DEFAULT_CROSSFADE_TIME; - int search_mode; + int search_mode = 0; int seek_time = 1; #ifdef ENABLE_CHAT_SCREEN @@ -57,17 +57,17 @@ struct Options { bool lyrics_show_plugin = false; #endif - bool auto_center; + bool auto_center = false; #ifndef NCMPC_MINI - bool enable_xterm_title; + bool enable_xterm_title = false; #endif #ifdef HAVE_GETMOUSE - bool enable_mouse; + bool enable_mouse = false; #endif #ifndef NCMPC_MINI bool scroll = DEFAULT_SCROLL; - bool visible_bitrate; + bool visible_bitrate = false; bool welcome_screen_list = true; bool second_column = true; #endif diff --git a/src/ui/Options.hxx b/src/ui/Options.hxx index 3812452b..e787c643 100644 --- a/src/ui/Options.hxx +++ b/src/ui/Options.hxx @@ -12,7 +12,7 @@ struct UiOptions { bool find_show_last_pattern = false; bool list_wrap = false; bool wide_cursor = true; - bool hardware_cursor; + bool hardware_cursor = false; #ifdef ENABLE_COLORS bool enable_colors = true; @@ -21,7 +21,7 @@ struct UiOptions { #endif bool audible_bell = true; - bool visible_bell; + bool visible_bell = false; bool bell_on_wrap = true; #ifdef NCMPC_MINI static constexpr bool jump_prefix_only = true;