From 0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127 Mon Sep 17 00:00:00 2001 From: bibo38 Date: Sun, 12 Jul 2015 20:58:19 +0200 Subject: Changing the shared_ptr/unique_ptr constructors to the make_shared/make_unique functions --- src/FurnaceRecipe.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/FurnaceRecipe.cpp') diff --git a/src/FurnaceRecipe.cpp b/src/FurnaceRecipe.cpp index e3be6b230..a0c8560f1 100644 --- a/src/FurnaceRecipe.cpp +++ b/src/FurnaceRecipe.cpp @@ -115,7 +115,7 @@ void cFurnaceRecipe::AddFuelFromLine(const AString & a_Line, unsigned int a_Line Line.erase(Line.begin()); // Remove the beginning "!" Line.erase(std::remove_if(Line.begin(), Line.end(), isspace), Line.end()); - std::unique_ptr Item(new cItem); + std::unique_ptr Item = cpp14::make_unique(); int BurnTime; const AStringVector & Sides = StringSplit(Line, "="); @@ -157,8 +157,8 @@ void cFurnaceRecipe::AddRecipeFromLine(const AString & a_Line, unsigned int a_Li Line.erase(std::remove_if(Line.begin(), Line.end(), isspace), Line.end()); int CookTime = 200; - std::unique_ptr InputItem(new cItem()); - std::unique_ptr OutputItem(new cItem()); + std::unique_ptr InputItem = cpp14::make_unique(); + std::unique_ptr OutputItem = cpp14::make_unique(); const AStringVector & Sides = StringSplit(Line, "="); if (Sides.size() != 2) -- cgit v1.2.3