From ff12aca83a942f7beba5cf849f9bf2cee9c366e7 Mon Sep 17 00:00:00 2001 From: Ilya Pomaskin Date: Fri, 10 Oct 2014 14:36:35 +0400 Subject: [PATCH] bind -> std::bind --- client/CPreGame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/CPreGame.cpp b/client/CPreGame.cpp index c18aefa49..a21468903 100644 --- a/client/CPreGame.cpp +++ b/client/CPreGame.cpp @@ -3194,7 +3194,7 @@ void CBonusSelection::init() //bonus choosing graphics->fonts[FONT_MEDIUM]->renderTextLeft(background, CGI->generaltexth->allTexts[71], Colors::WHITE, Point(511, 432)); - bonuses = new CToggleGroup(bind(&CBonusSelection::selectBonus, this, _1)); + bonuses = new CToggleGroup(std::bind(&CBonusSelection::selectBonus, this, _1)); //set left part of window bool isCurrentMapConquerable = ourCampaign->currentMap && ourCampaign->camp->conquerable(*ourCampaign->currentMap); @@ -3447,7 +3447,7 @@ void CBonusSelection::updateBonusSelection() updateStartButtonState(-1); delete bonuses; - bonuses = new CToggleGroup(bind(&CBonusSelection::selectBonus, this, _1)); + bonuses = new CToggleGroup(std::bind(&CBonusSelection::selectBonus, this, _1)); static const char *bonusPics[] = {"SPELLBON.DEF", "TWCRPORT.DEF", "", "ARTIFBON.DEF", "SPELLBON.DEF", "PSKILBON.DEF", "SSKILBON.DEF", "BORES.DEF", "PORTRAITSLARGE", "PORTRAITSLARGE"};