From: <sv...@op...> - 2024-09-24 07:18:24
|
Author: manx Date: Tue Sep 24 09:18:12 2024 New Revision: 21730 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21730 Log: [Ref] openmpt123: Small cleanup. Modified: trunk/OpenMPT/openmpt123/openmpt123.cpp Modified: trunk/OpenMPT/openmpt123/openmpt123.cpp ============================================================================== --- trunk/OpenMPT/openmpt123/openmpt123.cpp Mon Sep 23 23:12:59 2024 (r21729) +++ trunk/OpenMPT/openmpt123/openmpt123.cpp Tue Sep 24 09:18:12 2024 (r21730) @@ -2188,7 +2188,6 @@ FILE_mode_guard stdout_text_guard( stdout, FILE_mode::text ); FILE_mode_guard stderr_text_guard( stderr, FILE_mode::text ); - textout_dummy dummy_log; textout_wrapper<textout_destination::destination_stdout> std_out; textout_wrapper<textout_destination::destination_stderr> std_err; @@ -2281,6 +2280,7 @@ [[maybe_unused]] std::optional<terminal_ui_guard> input_guard{ stdin_text && ( flags.mode == Mode::UI ) ? std::make_optional<terminal_ui_guard>() : std::nullopt }; // choose text output between quiet/stdout/stderr + textout_dummy dummy_log; textout & log = flags.quiet ? static_cast<textout&>( dummy_log ) : stdout_text ? static_cast<textout&>( std_out ) : static_cast<textout&>( std_err ); show_banner( log, flags.banner ); |