mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
Fix C++11isms in 3fb9f47bf1
This commit is contained in:
parent
d839e9cf14
commit
2cf4568d82
1 changed files with 3 additions and 1 deletions
|
|
@ -284,6 +284,8 @@ Session::import_pt_rest (PTFFormat& ptf)
|
||||||
vector<midipair> uniquetr;
|
vector<midipair> uniquetr;
|
||||||
|
|
||||||
struct PlaylistState {
|
struct PlaylistState {
|
||||||
|
PlaylistState () : before (0) {}
|
||||||
|
|
||||||
boost::shared_ptr<Playlist> playlist;
|
boost::shared_ptr<Playlist> playlist;
|
||||||
XMLNode* before;
|
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));
|
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 */
|
/* 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));
|
boost::shared_ptr<Region> copy (RegionFactory::create (r, true));
|
||||||
playlist->add_region (copy, a->reg.startpos);
|
playlist->add_region (copy, a->reg.startpos);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue