mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 17:10:55 +02:00
Define Tags::Merge
This commit is contained in:
parent
392360a629
commit
89f572f798
@ -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;
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user