mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix issues introduced by automated replacement of redundant types
This commit is contained in:
		| @@ -192,7 +192,7 @@ public: // public interface for use by client via LOCPLINT access | ||||
| 	void showInfoDialog(const std::string &text, std::shared_ptr<CComponent> component); | ||||
| 	void showInfoDialog(const std::string &text, const std::vector<std::shared_ptr<CComponent>> & components = std::vector<std::shared_ptr<CComponent>>(), int soundID = 0); | ||||
| 	void showInfoDialogAndWait(std::vector<Component> & components, const MetaString & text); | ||||
| 	auto showYesNoDialog(const std::string &text, CFunctionList<void()> onYes, CFunctionList<void()> onNo, const std::vector<std::shared_ptr<CComponent>> & components = std::vector<std::shared_ptr<CComponent>>()); | ||||
| 	void showYesNoDialog(const std::string &text, CFunctionList<void()> onYes, CFunctionList<void()> onNo, const std::vector<std::shared_ptr<CComponent>> & components = std::vector<std::shared_ptr<CComponent>>()); | ||||
|  | ||||
| 	void moveHero(const CGHeroInstance *h, const CGPath& path); | ||||
|  | ||||
|   | ||||
| @@ -118,7 +118,7 @@ void CHighScoreScreen::addHighScores() | ||||
| { | ||||
| 	OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE; | ||||
|  | ||||
| 	auto = std::make_shared<CPicture>(ImagePath::builtin(highscorepage == HighScorePage::SCENARIO ? "HISCORE" : "HISCORE2")); | ||||
| 	background = std::make_shared<CPicture>(ImagePath::builtin(highscorepage == HighScorePage::SCENARIO ? "HISCORE" : "HISCORE2")); | ||||
|  | ||||
| 	texts.clear(); | ||||
| 	images.clear(); | ||||
|   | ||||
| @@ -35,7 +35,7 @@ public: | ||||
| class HighScoreCalculation | ||||
| { | ||||
| public: | ||||
| 	auto parameters = std::vector<HighScoreParameter>(); | ||||
| 	std::vector<HighScoreParameter> parameters = std::vector<HighScoreParameter>(); | ||||
| 	bool isCampaign = false; | ||||
|  | ||||
| 	auto calculate(); | ||||
|   | ||||
| @@ -49,7 +49,7 @@ std::vector<JsonNode> BattleFieldHandler::loadLegacyData() | ||||
|  | ||||
| const std::vector<std::string> & BattleFieldHandler::getTypeNames() const | ||||
| { | ||||
| 	static auto  std::vector<std::string> types = std::vector<std::string> { "battlefield" }; | ||||
| 	static const auto types = std::vector<std::string> { "battlefield" }; | ||||
|  | ||||
| 	return types; | ||||
| } | ||||
|   | ||||
| @@ -534,7 +534,7 @@ R CTownHandler::getMappedValue(const JsonNode & node, const R defval, const std: | ||||
| void CTownHandler::addBonusesForVanilaBuilding(CBuilding * building) const | ||||
| { | ||||
| 	std::shared_ptr<Bonus> b; | ||||
| 	static auto playerPropagator = std::make_shared<CPropagatorNodeType>(CBonusSystemNode::ENodeTypes::PLAYER); | ||||
| 	static TPropagatorPtr playerPropagator = std::make_shared<CPropagatorNodeType>(CBonusSystemNode::ENodeTypes::PLAYER); | ||||
|  | ||||
| 	if(building->bid == BuildingID::TAVERN) | ||||
| 	{ | ||||
|   | ||||
| @@ -54,7 +54,7 @@ void Progress::reset(int s) | ||||
|  | ||||
| void Progress::finish() | ||||
| { | ||||
| 	auto = _target = std::numeric_limits<Type>::max(); | ||||
| 	_progress = _target = std::numeric_limits<Type>::max(); | ||||
| 	_step = std::numeric_limits<Type>::min(); | ||||
| 	_maxSteps = std::numeric_limits<Type>::min(); | ||||
| } | ||||
|   | ||||
| @@ -24,7 +24,7 @@ | ||||
|  | ||||
| VCMI_LIB_NAMESPACE_BEGIN | ||||
|  | ||||
| auto CResourceHandler::knownLoaders = std::map<std::string, ISimpleResourceLoader*>(); | ||||
| std::map<std::string, ISimpleResourceLoader*> CResourceHandler::knownLoaders = std::map<std::string, ISimpleResourceLoader*>(); | ||||
| CResourceHandler CResourceHandler::globalResourceHandler; | ||||
|  | ||||
| CFilesystemGenerator::CFilesystemGenerator(std::string prefix, bool extractArchives): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user