diff options
author | Robin Gareus <robin@gareus.org> | 2019-03-19 05:14:00 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-03-19 05:14:00 +0100 |
commit | cf11e11fc571e761382507a7d7cf574d5c3429bc (patch) | |
tree | 37fa8b0722bd9d0398956eac4e95226db2ae97d3 /libs/ardour/audio_playlist_importer.cc | |
parent | ab791658936a24d2df69102d07c430b38db8ca32 (diff) |
Remove global Session::playlists variable, use getter method (1/2)
Global variables that can written by anyone are to be avoided.
This also simplifies exposing SessionPlaylists as Lua bindings.
Diffstat (limited to 'libs/ardour/audio_playlist_importer.cc')
-rw-r--r-- | libs/ardour/audio_playlist_importer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audio_playlist_importer.cc b/libs/ardour/audio_playlist_importer.cc index 65f3410fcd..89e1b40852 100644 --- a/libs/ardour/audio_playlist_importer.cc +++ b/libs/ardour/audio_playlist_importer.cc @@ -170,7 +170,7 @@ bool AudioPlaylistImporter::_prepare_move () { // Rename - while (session.playlists->by_name (name) || !handler.check_name (name)) { + while (session.playlists()->by_name (name) || !handler.check_name (name)) { std::pair<bool, string> rename_pair = *Rename (_("A playlist with this name already exists, please rename it."), name); if (!rename_pair.first) { return false; |