diff options
author | Robin Gareus <robin@gareus.org> | 2018-03-17 20:00:08 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-03-17 20:00:08 +0100 |
commit | c2ed125b8ddf3ee684fa742eea6c3db1dc05ecc1 (patch) | |
tree | b4d00f87ea4250115b6156408bddf5c4e8e026e7 /gtk2_ardour/editor_pt_import.cc | |
parent | 1de8bc3617213ff2f0831406683547945732fff1 (diff) |
Remove another C++11 construct (local struct) from UI code
Diffstat (limited to 'gtk2_ardour/editor_pt_import.cc')
-rw-r--r-- | gtk2_ardour/editor_pt_import.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gtk2_ardour/editor_pt_import.cc b/gtk2_ardour/editor_pt_import.cc index ea583664ec..75d8711beb 100644 --- a/gtk2_ardour/editor_pt_import.cc +++ b/gtk2_ardour/editor_pt_import.cc @@ -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; |