Replaced cpp14::make_unique<> with std::make_unique<>.
This commit is contained in:
@@ -64,7 +64,7 @@ void cBrewingRecipes::AddRecipeFromLine(AString a_Line, unsigned int a_LineNum)
|
||||
{
|
||||
a_Line.erase(std::remove_if(a_Line.begin(), a_Line.end(), isspace), a_Line.end());
|
||||
|
||||
auto Recipe = cpp14::make_unique<cRecipe>();
|
||||
auto Recipe = std::make_unique<cRecipe>();
|
||||
|
||||
const AStringVector & InputAndIngredient = StringSplit(a_Line, "+");
|
||||
|
||||
@@ -145,7 +145,7 @@ const cBrewingRecipes::cRecipe * cBrewingRecipes::GetRecipeFrom(const cItem & a_
|
||||
if (a_Input.m_ItemDamage & 0x2000)
|
||||
{
|
||||
// Create new recipe and add it to list
|
||||
auto Recipe = cpp14::make_unique<cRecipe>();
|
||||
auto Recipe = std::make_unique<cRecipe>();
|
||||
|
||||
Recipe->Input.m_ItemType = a_Input.m_ItemDamage;
|
||||
Recipe->Output.m_ItemDamage = a_Input.m_ItemDamage + 8192;
|
||||
@@ -178,7 +178,7 @@ const cBrewingRecipes::cRecipe * cBrewingRecipes::GetRecipeFrom(const cItem & a_
|
||||
}
|
||||
|
||||
// Create new recipe and add it to list
|
||||
auto Recipe = cpp14::make_unique<cRecipe>();
|
||||
auto Recipe = std::make_unique<cRecipe>();
|
||||
|
||||
Recipe->Input.m_ItemDamage = a_Input.m_ItemDamage;
|
||||
Recipe->Output.m_ItemDamage = (*FoundRecipe)->Output.m_ItemDamage + 8192;
|
||||
|
||||
Reference in New Issue
Block a user