Skip to content

Commit

Permalink
[Ref] openmpt123: Small cleanup.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@21730 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Sep 24, 2024
1 parent d1ac8ac commit 708bed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmpt123/openmpt123.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2188,7 +2188,6 @@ static mpt::uint8 main( std::vector<mpt::ustring> args ) {
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;

Expand Down Expand Up @@ -2281,6 +2280,7 @@ static mpt::uint8 main( std::vector<mpt::ustring> args ) {
[[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 );
Expand Down

0 comments on commit 708bed7

Please sign in to comment.