mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
c++03 -> c++11 switch:
- use std versions of function, bind and ref - OVERRIDE -> override - NULL -> nullptr - use std versions of random distributions NOTE: this may be last revision that supports gcc-4.5
This commit is contained in:
AI
CCallback.cppCCallback.hGlobal.hclient
AdventureMapClasses.cppCAdvmapInterface.cppCAdvmapInterface.hCAnimation.cppCAnimation.hCBitmapHandler.cppCCastleInterface.cppCCastleInterface.hCCreatureWindow.cppCCreatureWindow.hCDefHandler.cppCGameInfo.cppCHeroWindow.cppCHeroWindow.hCKingdomInterface.cppCMT.cppCMessage.cppCMusicHandler.cppCMusicHandler.hCPlayerInterface.cppCPlayerInterface.hCPreGame.cppCPreGame.hCQuestLog.cppCQuestLog.hCSpellWindow.cppCSpellWindow.hCVideoHandler.cppClient.cppClient.hGUIClasses.cppGUIClasses.hGraphics.cppGraphics.hNetPacksClient.cpp
battle
CBattleAnimations.cppCBattleInterface.cppCBattleInterface.hCBattleInterfaceClasses.cppCCreatureAnimation.cppCCreatureAnimation.h
gui
CCursorHandler.cppCCursorHandler.hCGuiHandler.cppCGuiHandler.hCIntObject.cppCIntObjectClasses.cppCIntObjectClasses.hFonts.cppSDL_Extensions.cpp
mapHandler.cpplib
BattleState.cppBattleState.hCArtHandler.cppCArtHandler.hCBattleCallback.cppCBattleCallback.hCConfigHandler.cppCConfigHandler.hCConsoleHandler.cppCConsoleHandler.hCCreatureHandler.cppCCreatureHandler.hCCreatureSet.cppCCreatureSet.hCGameInterface.hCGameState.cppCGameState.hCModHandler.cppCModHandler.hCObjectHandler.cppCObjectHandler.hCObstacleInstance.hCRandomGenerator.hCSpellHandler.hCThreadHelper.cppCThreadHelper.hConnection.cppConnection.hConstTransitivePtr.hHeroBonus.cppHeroBonus.hIGameCallback.cppIGameCallback.hIGameEventsReceiver.hJsonNode.cppJsonNode.hNetPacks.hNetPacksLib.cppStartInfo.hUnlockGuard.hVCMIDirs.cppVCMI_Lib.cpp
mapping
server
@ -135,7 +135,7 @@ void SettingsListener::nodeInvalidated(const std::vector<std::string> &changedPa
|
||||
callback(parent.getNode(path));
|
||||
}
|
||||
|
||||
void SettingsListener::operator() (boost::function<void(const JsonNode&)> _callback)
|
||||
void SettingsListener::operator() (std::function<void(const JsonNode&)> _callback)
|
||||
{
|
||||
callback = _callback;
|
||||
}
|
||||
@ -200,7 +200,7 @@ static void setGem(AdventureMapConfig &ac, const int gem, const JsonNode &g)
|
||||
ac.gemG.push_back(g["graphic"].String());
|
||||
}
|
||||
|
||||
CConfigHandler::CConfigHandler(void): current(NULL)
|
||||
CConfigHandler::CConfigHandler(void): current(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user