From 5ae924ec74bab199284c451552040bcc6f39bb3a Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 12 Apr 2021 22:56:21 +0100 Subject: ForestRocks: use make_unique to construct --- src/Generating/ComposableGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Generating') diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp index 8d3f361bd..14236a2e1 100644 --- a/src/Generating/ComposableGenerator.cpp +++ b/src/Generating/ComposableGenerator.cpp @@ -466,7 +466,7 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile) } else if (NoCaseCompare(finisher, "ForestRocks") == 0) { - m_FinishGens.push_back(cFinishGenPtr(new cFinishGenForestRocks(m_Seed, a_IniFile))); + m_FinishGens.push_back(std::make_unique(m_Seed, a_IniFile)); } else if (NoCaseCompare(finisher, "GlowStone") == 0) { -- cgit v1.2.3