mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
bind -> std::bind
This commit is contained in:
committed by
Patrick Simmons
parent
41e93a66ce
commit
ff12aca83a
@ -3194,7 +3194,7 @@ void CBonusSelection::init()
|
|||||||
|
|
||||||
//bonus choosing
|
//bonus choosing
|
||||||
graphics->fonts[FONT_MEDIUM]->renderTextLeft(background, CGI->generaltexth->allTexts[71], Colors::WHITE, Point(511, 432));
|
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
|
//set left part of window
|
||||||
bool isCurrentMapConquerable = ourCampaign->currentMap && ourCampaign->camp->conquerable(*ourCampaign->currentMap);
|
bool isCurrentMapConquerable = ourCampaign->currentMap && ourCampaign->camp->conquerable(*ourCampaign->currentMap);
|
||||||
@ -3447,7 +3447,7 @@ void CBonusSelection::updateBonusSelection()
|
|||||||
updateStartButtonState(-1);
|
updateStartButtonState(-1);
|
||||||
|
|
||||||
delete bonuses;
|
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",
|
static const char *bonusPics[] = {"SPELLBON.DEF", "TWCRPORT.DEF", "", "ARTIFBON.DEF", "SPELLBON.DEF",
|
||||||
"PSKILBON.DEF", "SSKILBON.DEF", "BORES.DEF", "PORTRAITSLARGE", "PORTRAITSLARGE"};
|
"PSKILBON.DEF", "SSKILBON.DEF", "BORES.DEF", "PORTRAITSLARGE", "PORTRAITSLARGE"};
|
||||||
|
Reference in New Issue
Block a user