13
0

Fix C++11isms in 3fb9f47bf1

This commit is contained in:
Robin Gareus 2021-05-26 03:55:29 +02:00
parent d839e9cf14
commit 2cf4568d82
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -284,6 +284,8 @@ Session::import_pt_rest (PTFFormat& ptf)
vector<midipair> uniquetr;
struct PlaylistState {
PlaylistState () : before (0) {}
boost::shared_ptr<Playlist> playlist;
XMLNode* before;
};
@ -372,7 +374,7 @@ Session::import_pt_rest (PTFFormat& ptf)
DEBUG_TRACE (DEBUG::FileUtils, string_compose ("\twav(%1) reg(%2) tr(%3)\n", a->reg.wave.filename.c_str (), a->reg.index, a->index));
/* Use existing playlists */
boost::shared_ptr<Playlist> playlist = playlists.at (a->index).playlist;
boost::shared_ptr<Playlist> playlist = playlists[a->index].playlist;
boost::shared_ptr<Region> copy (RegionFactory::create (r, true));
playlist->add_region (copy, a->reg.startpos);
}