diff options
author | Mattes D <github@xoft.cz> | 2014-11-28 22:46:58 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-28 22:46:58 +0100 |
commit | 883230abbcc20a4a27e1d8909894be63dee75d43 (patch) | |
tree | ecbdc082281e820fc98a302add93400ba467dbd7 /src/FurnaceRecipe.cpp | |
parent | CMake: Fixed linux builds. (diff) | |
parent | Chunk: Fixed same-name iterators. (diff) | |
download | cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.gz cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.bz2 cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.lz cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.xz cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.tar.zst cuberite-883230abbcc20a4a27e1d8909894be63dee75d43.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 9b3b2ecbe..112aa8146 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::auto_ptr<cItem> Item(new cItem); + std::unique_ptr<cItem> Item(new 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::auto_ptr<cItem> InputItem(new cItem()); - std::auto_ptr<cItem> OutputItem(new cItem()); + std::unique_ptr<cItem> InputItem(new cItem()); + std::unique_ptr<cItem> OutputItem(new cItem()); const AStringVector & Sides = StringSplit(Line, "="); if (Sides.size() != 2) |