1
0
forked from mirrors/0ad

Refactors smart pointers creation, reduces code duplication and improves exception safety.

This was SVN commit r24915.
This commit is contained in:
vladislavbelov
2021-02-13 23:53:40 +00:00
parent 425f19b8ac
commit 7a71011149
21 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2020 Wildfire Games.
/* Copyright (C) 2021 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -430,7 +430,7 @@ void CSimulation2Impl::Update(int turnLength, const std::vector<SimulationComman
// Load the map into the secondary simulation
LDR_BeginRegistering();
std::unique_ptr<CMapReader> mapReader(new CMapReader);
std::unique_ptr<CMapReader> mapReader = std::make_unique<CMapReader>();
std::string mapType;
scriptInterface.GetProperty(m_InitAttributes, "mapType", mapType);