--- linuxsampler/trunk/src/plugins/InstrumentEditor.cpp 2017/06/23 12:24:58 3290 +++ linuxsampler/trunk/src/plugins/InstrumentEditor.cpp 2020/01/08 22:11:30 3708 @@ -1,6 +1,6 @@ /*************************************************************************** * * - * Copyright (C) 2007 - 2017 Christian Schoenebeck * + * Copyright (C) 2007 - 2020 Christian Schoenebeck * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -61,7 +61,9 @@ // notify all registered listeners std::for_each( listeners.begin(), listeners.end(), - std::bind2nd(std::mem_fun(&InstrumentEditorListener::OnInstrumentEditorQuit), this) + [this](InstrumentEditorListener* listener) { + listener->OnInstrumentEditorQuit(this); + } ); // done StopThread();