From 5ca3a7c2e76bc91356aaa1c6bc3d12bb2a3c6e9c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 8 Mar 2021 16:39:43 +0000 Subject: shared_ptr -> unique_ptr in generators --- src/Generating/PiecePool.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/Generating/PiecePool.h') diff --git a/src/Generating/PiecePool.h b/src/Generating/PiecePool.h index 0849f4ebc..8beaf0c31 100644 --- a/src/Generating/PiecePool.h +++ b/src/Generating/PiecePool.h @@ -115,7 +115,7 @@ public: /** Called when the piece pool is assigned to a generator, so that the strategies may bind to the underlying subgenerators. */ - virtual void AssignGens(int a_Seed, cBiomeGenPtr & a_BiomeGen, cTerrainHeightGenPtr & a_TerrainHeightGen, int a_SeaLevel) {} + virtual void AssignGens(int a_Seed, cBiomeGen & a_BiomeGen, cTerrainHeightGen & a_TerrainHeightGen, int a_SeaLevel) {} }; typedef std::shared_ptr cVerticalStrategyPtr; @@ -142,7 +142,7 @@ public: /** Called when the piece pool is assigned to a generator, so that the limits may bind to the underlying subgenerators. */ - virtual void AssignGens(int a_Seed, cBiomeGenPtr & a_BiomeGen, cTerrainHeightGenPtr & a_TerrainHeightGen, int a_SeaLevel) {} + virtual void AssignGens(int a_Seed, cBiomeGen & a_BiomeGen, cTerrainHeightGen & a_TerrainHeightGen, int a_SeaLevel) {} }; typedef std::shared_ptr cVerticalLimitPtr; @@ -328,8 +328,3 @@ protected: typedef std::unique_ptr cPlacedPiecePtr; typedef std::vector cPlacedPieces; - - - - - -- cgit v1.2.3