Define Tags::Merge

This commit is contained in:
Paul Licameli 2020-09-01 16:12:52 -04:00
parent 392360a629
commit 89f572f798
2 changed files with 9 additions and 0 deletions

View File

@ -268,6 +268,13 @@ std::shared_ptr<Tags> Tags::Duplicate() const
return std::make_shared<Tags>(*this);
}
void Tags::Merge( const Tags &other )
{
for ( auto &pair : other.mMap ) {
SetTag( pair.first, pair.second );
}
}
Tags & Tags::operator=(const Tags & src)
{
mEditTitle = src.mEditTitle;

View File

@ -88,6 +88,8 @@ class AUDACITY_DLL_API Tags final
std::shared_ptr<Tags> Duplicate() const;
void Merge( const Tags &other );
Tags & operator= (const Tags & src );
bool ShowEditDialog(