diff src/core/config.cc @ 151:54744a48a7d7

last commit part 2: struct init with {} is valid syntax, actually
author Paper <mrpapersonic@gmail.com>
date Tue, 14 Nov 2023 16:31:21 -0500
parents ffa535b6d630
children 01d259b9c89f
line wrap: on
line diff
--- a/src/core/config.cc	Tue Nov 14 16:27:33 2023 -0500
+++ b/src/core/config.cc	Tue Nov 14 16:31:21 2023 -0500
@@ -65,12 +65,7 @@
 
 		recognition.players.reserve(players.size());
 		for (const auto& player : players) {
-			MediaPlayer mediaplayer;
-
-			mediaplayer.enabled = true;
-			mediaplayer.player = player;
-
-			recognition.players.push_back(mediaplayer);
+			recognition.players.push_back({true, player});
 		}
 	}