replace boost::bind with std::bind

This commit is contained in:
Andrzej Rybczak
2015-05-11 01:28:52 +02:00
parent cf6cf7d787
commit a7dab01eff
12 changed files with 73 additions and 68 deletions

View File

@@ -18,8 +18,6 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <boost/bind.hpp>
#include "charset.h"
#include "display.h"
#include "global.h"
@@ -50,41 +48,41 @@ SortPlaylistDialog::SortPlaylistDialog()
});
w.addItem(Entry(std::make_pair("Artist", &MPD::Song::getArtist),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Album", &MPD::Song::getAlbum),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Disc", &MPD::Song::getDisc),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Track", &MPD::Song::getTrack),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Genre", &MPD::Song::getGenre),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Date", &MPD::Song::getDate),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Composer", &MPD::Song::getComposer),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Performer", &MPD::Song::getPerformer),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Title", &MPD::Song::getTitle),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addItem(Entry(std::make_pair("Filename", &MPD::Song::getURI),
boost::bind(&Self::moveSortOrderHint, this)
std::bind(&Self::moveSortOrderHint, this)
));
w.addSeparator();
w.addItem(Entry(std::make_pair("Sort", static_cast<MPD::Song::GetFunction>(0)),
boost::bind(&Self::sort, this)
std::bind(&Self::sort, this)
));
w.addItem(Entry(std::make_pair("Cancel", static_cast<MPD::Song::GetFunction>(0)),
boost::bind(&Self::cancel, this)
std::bind(&Self::cancel, this)
));
}