13
0

Remove another C++11 construct (local struct) from UI code

This commit is contained in:
Robin Gareus 2018-03-17 20:00:08 +01:00
parent 1de8bc3617
commit c2ed125b8d

View File

@ -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;