summaryrefslogtreecommitdiffstats
path: root/src/FurnaceRecipe.cpp
diff options
context:
space:
mode:
authorbibo38 <bibo38@github.com>2015-07-12 20:58:19 +0200
committerbibo38 <bibo38@github.com>2015-07-12 21:02:47 +0200
commit0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127 (patch)
tree5dad04d59b122af5710099331070366d5b8b1baa /src/FurnaceRecipe.cpp
parentMerge pull request #2330 from cuberite/libraryupdate (diff)
downloadcuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar
cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.gz
cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.bz2
cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.lz
cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.xz
cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.tar.zst
cuberite-0cb0bbe51ab7d2c80f54d8c7ae22b367ff833127.zip
Diffstat (limited to 'src/FurnaceRecipe.cpp')
-rw-r--r--src/FurnaceRecipe.cpp6
1 files changed, 3 insertions, 3 deletions
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<cItem> Item(new cItem);
+ std::unique_ptr<cItem> Item = cpp14::make_unique<cItem>();
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<cItem> InputItem(new cItem());
- std::unique_ptr<cItem> OutputItem(new cItem());
+ std::unique_ptr<cItem> InputItem = cpp14::make_unique<cItem>();
+ std::unique_ptr<cItem> OutputItem = cpp14::make_unique<cItem>();
const AStringVector & Sides = StringSplit(Line, "=");
if (Sides.size() != 2)