mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Remove another C++11 construct (local struct) from UI code
This commit is contained in:
parent
1de8bc3617
commit
c2ed125b8d
1 changed files with 9 additions and 8 deletions
|
|
@ -110,6 +110,15 @@ Editor::external_pt_dialog ()
|
|||
}
|
||||
}
|
||||
|
||||
struct midipair {
|
||||
midipair (uint16_t idx, string n)
|
||||
: ptfindex (idx)
|
||||
, trname (n)
|
||||
{}
|
||||
uint16_t ptfindex;
|
||||
string trname;
|
||||
};
|
||||
|
||||
void
|
||||
Editor::do_ptimport (std::string ptpath,
|
||||
SrcQuality quality)
|
||||
|
|
@ -276,14 +285,6 @@ Editor::do_ptimport (std::string ptpath,
|
|||
}
|
||||
|
||||
/* MIDI - Find list of unique midi tracks first */
|
||||
struct midipair {
|
||||
midipair (uint16_t idx, string n)
|
||||
: ptfindex (idx)
|
||||
, trname (n)
|
||||
{}
|
||||
uint16_t ptfindex;
|
||||
string trname;
|
||||
};
|
||||
|
||||
vector<midipair> uniquetr;
|
||||
uint16_t ith = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue