@@ -225,43 +225,43 @@ class Song {
225225 jsonPath.parent_path () / path.value .GetString ()
226226 )) {
227227 if (stem == " drums" )
228- stemsPath.push_back (
229- { (jsonPath.parent_path () / path.value .GetString ()
228+ stemsPath.emplace_back (
229+ (jsonPath.parent_path () / path.value .GetString ()
230230 )
231231 .string (),
232- PartDrums }
232+ PartDrums
233233 );
234234
235235 else if (stem == " bass" )
236- stemsPath.push_back (
237- { (jsonPath.parent_path () / path.value .GetString ()
236+ stemsPath.emplace_back (
237+ (jsonPath.parent_path () / path.value .GetString ()
238238 )
239239 .string (),
240- PartBass }
240+ PartBass
241241 );
242242
243243 else if (stem == " lead" )
244- stemsPath.push_back (
245- { (jsonPath.parent_path () / path.value .GetString ()
244+ stemsPath.emplace_back (
245+ (jsonPath.parent_path () / path.value .GetString ()
246246 )
247247 .string (),
248- PartGuitar }
248+ PartGuitar
249249 );
250250
251251 else if (stem == " vocals" )
252- stemsPath.push_back (
253- { (jsonPath.parent_path () / path.value .GetString ()
252+ stemsPath.emplace_back (
253+ (jsonPath.parent_path () / path.value .GetString ()
254254 )
255255 .string (),
256- PartVocals }
256+ PartVocals
257257 );
258258
259259 else if (stem == " backing" )
260- stemsPath.push_back (
261- { (jsonPath.parent_path () / path.value .GetString ()
260+ stemsPath.emplace_back (
261+ (jsonPath.parent_path () / path.value .GetString ()
262262 )
263263 .string (),
264- 5 }
264+ 5
265265 );
266266 }
267267 } else if (path.value .IsArray ()) {
@@ -270,38 +270,38 @@ class Song {
270270 jsonPath.parent_path () / path2.GetString ()
271271 )) {
272272 if (stem == " drums" )
273- stemsPath.push_back (
274- { (jsonPath.parent_path () / path2.GetString ())
273+ stemsPath.emplace_back (
274+ (jsonPath.parent_path () / path2.GetString ())
275275 .string (),
276- PartDrums }
276+ PartDrums
277277 );
278278
279279 else if (stem == " bass" )
280- stemsPath.push_back (
281- { (jsonPath.parent_path () / path2.GetString ())
280+ stemsPath.emplace_back (
281+ (jsonPath.parent_path () / path2.GetString ())
282282 .string (),
283- PartBass }
283+ PartBass
284284 );
285285
286286 else if (stem == " lead" )
287- stemsPath.push_back (
288- { (jsonPath.parent_path () / path2.GetString ())
287+ stemsPath.emplace_back (
288+ (jsonPath.parent_path () / path2.GetString ())
289289 .string (),
290- PartGuitar }
290+ PartGuitar
291291 );
292292
293293 else if (stem == " vocals" )
294- stemsPath.push_back (
295- { (jsonPath.parent_path () / path2.GetString ())
294+ stemsPath.emplace_back (
295+ (jsonPath.parent_path () / path2.GetString ())
296296 .string (),
297- PartVocals }
297+ PartVocals
298298 );
299299
300300 else if (stem == " backing" )
301- stemsPath.push_back (
302- { (jsonPath.parent_path () / path2.GetString ())
301+ stemsPath.emplace_back (
302+ (jsonPath.parent_path () / path2.GetString ())
303303 .string (),
304- 5 }
304+ 5
305305 );
306306 }
307307 }
0 commit comments