mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
Use PBD::to_string API from pbd/string_convert.h in AudioFileTagger
Use pbd/string_convert.h API instead of std::ostream for numeric formatting to remain locale independent and not have to use a LocaleGuard. The formatting is equivalent.
This commit is contained in:
parent
0dbb9e6346
commit
37d76e4104
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "ardour/session_metadata.h"
|
||||
|
||||
#include "pbd/convert.h"
|
||||
#include "pbd/string_convert.h"
|
||||
|
||||
#include <taglib/fileref.h>
|
||||
#include <taglib/flacfile.h>
|
||||
|
|
@ -118,7 +118,7 @@ AudiofileTagger::tag_vorbis_comment (TagLib::Ogg::XiphComment & tag, SessionMeta
|
|||
tag.addField ("MIXER", TL_STR(metadata.mixer()));
|
||||
tag.addField ("COMPILATION", TL_STR(metadata.compilation()));
|
||||
tag.addField ("DISCSUBTITLE", TL_STR(metadata.disc_subtitle()));
|
||||
tag.addField ("DISCNUMBER", to_string (metadata.disc_number(), std::dec));
|
||||
tag.addField ("DISCNUMBER", to_string (metadata.disc_number()));
|
||||
|
||||
// No field for total discs or tracks
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue