diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-07-13 00:54:58 +0200 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-07-13 00:54:58 +0200 |
commit | f6f27a139e67edf4f400dfae52b66fa24f5b8b29 (patch) | |
tree | b8ff113b4dc299526c8f33573ca4e0491683dc5b /src/FurnaceRecipe.cpp | |
parent | Merge pull request #2339 from mmdk95/master (diff) | |
parent | Changing the shared_ptr/unique_ptr constructors to the make_shared/make_unique functions (diff) | |
download | cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.gz cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.bz2 cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.lz cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.xz cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.tar.zst cuberite-f6f27a139e67edf4f400dfae52b66fa24f5b8b29.zip |
Diffstat (limited to 'src/FurnaceRecipe.cpp')
-rw-r--r-- | src/FurnaceRecipe.cpp | 6 |
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) |