From c2ed125b8ddf3ee684fa742eea6c3db1dc05ecc1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 17 Mar 2018 20:00:08 +0100 Subject: [PATCH] Remove another C++11 construct (local struct) from UI code --- gtk2_ardour/editor_pt_import.cc | 17 +++++++++-------- 1 file 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 uniquetr; uint16_t ith = 0;