@@ -159,7 +159,7 @@ namespace adm {
159
159
if (idMap_.contains (id)) {
160
160
throw error::XmlParsingDuplicateId (formatId (id), getDocumentLine (node));
161
161
}
162
- auto audioProgramme = AudioProgramme::create (name, id);
162
+ auto audioProgramme = AudioProgramme::create (std::move ( name) , id);
163
163
164
164
setOptionalAttribute<AudioProgrammeLanguage>(node, " audioProgrammeLanguage" , audioProgramme);
165
165
setOptionalAttribute<Start>(node, " start" , audioProgramme, &parseTimecode);
@@ -183,7 +183,7 @@ namespace adm {
183
183
if (idMap_.contains (id)) {
184
184
throw error::XmlParsingDuplicateId (formatId (id), getDocumentLine (node));
185
185
}
186
- auto audioContent = AudioContent::create (name, id);
186
+ auto audioContent = AudioContent::create (std::move ( name) , id);
187
187
188
188
setOptionalAttribute<AudioContentLanguage>(node, " audioContentLanguage" , audioContent);
189
189
@@ -204,7 +204,7 @@ namespace adm {
204
204
if (idMap_.contains (id)) {
205
205
throw error::XmlParsingDuplicateId (formatId (id), getDocumentLine (node));
206
206
}
207
- auto audioObject = AudioObject::create (name, id);
207
+ auto audioObject = AudioObject::create (std::move ( name) , id);
208
208
209
209
setOptionalAttribute<Start>(node, " start" , audioObject, &parseTimecode);
210
210
setOptionalAttribute<Duration >(node, " duration" , audioObject, &parseTimecode);
@@ -314,14 +314,14 @@ namespace adm {
314
314
checkChannelType (id, typeLabel, typeDefinition);
315
315
316
316
if (typeDescriptor == adm::TypeDefinition::HOA){
317
- auto audioPackFormat = AudioPackFormatHoa::create (name, id);
317
+ auto audioPackFormat = AudioPackFormatHoa::create (std::move ( name) , id);
318
318
setCommonProperties (audioPackFormat, node);
319
319
setOptionalAttribute<Normalization>(node, " normalization" , audioPackFormat);
320
320
setOptionalAttribute<ScreenRef>(node, " screenRef" , audioPackFormat);
321
321
setOptionalAttribute<NfcRefDist>(node, " nfcRefDist" , audioPackFormat);
322
322
return audioPackFormat;
323
323
} else {
324
- auto audioPackFormat = AudioPackFormat::create (name, typeDescriptor, id);
324
+ auto audioPackFormat = AudioPackFormat::create (std::move ( name) , typeDescriptor, id);
325
325
setCommonProperties (audioPackFormat, node);
326
326
return audioPackFormat;
327
327
}
@@ -346,7 +346,7 @@ namespace adm {
346
346
if (idMap_.contains (id)) {
347
347
throw error::XmlParsingDuplicateId (formatId (id), getDocumentLine (node));
348
348
}
349
- auto audioChannelFormat = AudioChannelFormat::create (name, id.get <TypeDescriptor>(), id);
349
+ auto audioChannelFormat = AudioChannelFormat::create (std::move ( name) , id.get <TypeDescriptor>(), id);
350
350
351
351
auto typeLabel = parseOptionalAttribute<TypeDescriptor>(node, " typeLabel" , &parseTypeLabel);
352
352
auto typeDefinition = parseOptionalAttribute<TypeDescriptor>(node, " typeDefinition" , &parseTypeDefinition);
@@ -398,7 +398,7 @@ namespace adm {
398
398
auto formatLabel = parseOptionalAttribute<FormatDescriptor>(node, " formatLabel" , &parseFormatLabel);
399
399
auto formatDefinition = parseOptionalAttribute<FormatDescriptor>(node, " formatDefinition" , &parseFormatDefinition);
400
400
auto format = checkFormat (formatLabel, formatDefinition);
401
- auto audioStreamFormat = AudioStreamFormat::create (name, format, id);
401
+ auto audioStreamFormat = AudioStreamFormat::create (std::move ( name) , format, id);
402
402
403
403
setOptionalReference<AudioChannelFormatId>(node, " audioChannelFormatIDRef" , audioStreamFormat, streamFormatChannelFormatRef_, &parseAudioChannelFormatId);
404
404
setOptionalReference<AudioPackFormatId>(node, " audioPackFormatIDRef" , audioStreamFormat, streamFormatPackFormatRef_, &parseAudioPackFormatId);
@@ -420,7 +420,7 @@ namespace adm {
420
420
auto formatDefinition = parseOptionalAttribute<FormatDescriptor>(node, " formatDefinition" , &parseFormatDefinition);
421
421
auto format = checkFormat (formatLabel, formatDefinition);
422
422
423
- auto audioTrackFormat = AudioTrackFormat::create (name, format, id);
423
+ auto audioTrackFormat = AudioTrackFormat::create (std::move ( name) , format, id);
424
424
425
425
setOptionalReference<AudioStreamFormatId>(node, " audioStreamFormatIDRef" , audioTrackFormat, trackFormatStreamFormatRef_, &parseAudioStreamFormatId);
426
426
// clang-format on
0 commit comments