Fixed Clang 5.0 compile errors (#4085)
* Fixed Clang 5.0 compile errors * Fixed wrong comment * Only disable warnings in Clang 5 or higher * Added a CMake condition for the Clang 5 no-zero-as-null-pointer-constant warning * Now using the use_nullptr branch of the Cuberite specific SQLiteCpp fork
This commit is contained in:
committed by
Alexander Harkness
parent
72616e7eb9
commit
532731e6f4
@@ -272,7 +272,7 @@ void cFurnaceRecipe::ClearRecipes(void)
|
||||
|
||||
const cFurnaceRecipe::cRecipe * cFurnaceRecipe::GetRecipeFrom(const cItem & a_Ingredient) const
|
||||
{
|
||||
const cRecipe * BestRecipe = 0;
|
||||
const cRecipe * BestRecipe = nullptr;
|
||||
for (RecipeList::const_iterator itr = m_pState->Recipes.begin(); itr != m_pState->Recipes.end(); ++itr)
|
||||
{
|
||||
const cRecipe & Recipe = *itr;
|
||||
|
||||
Reference in New Issue
Block a user