mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
clang-tidy: fix many warnings
This commit is contained in:
@@ -234,7 +234,6 @@ void OptionList::drawOnOffSwitch(int x, int y, bool state, bool disabled)
|
||||
|
||||
void OptionList::renderItem(int index, int x, int y, int height, Tesselator& t)
|
||||
{
|
||||
Font* f = m_pMinecraft->m_pFont;
|
||||
OptionItem* pItem = m_items[index];
|
||||
|
||||
pItem->render(this, x, y);
|
||||
@@ -347,6 +346,8 @@ void OptionList::initDefaultMenu()
|
||||
|
||||
#ifdef __EMSCRIPTEN
|
||||
m_items[idxLM]->setDisabled(true);
|
||||
#else
|
||||
(void)idxLM;
|
||||
#endif
|
||||
|
||||
if (!GetPatchManager()->IsGrassSidesTinted())
|
||||
|
||||
@@ -97,7 +97,6 @@ void ScrolledSelectionList::renderScrollBackground()
|
||||
|
||||
void ScrolledSelectionList::checkInput(int mouseX, int mouseY)
|
||||
{
|
||||
int nItems = getNumberOfItems();
|
||||
if (Mouse::isButtonDown(BUTTON_LEFT))
|
||||
{
|
||||
if (float(mouseY) >= field_C && float(mouseY) <= field_10 && abs(mouseY - field_28) > 5)
|
||||
|
||||
@@ -47,9 +47,9 @@ void TextInputBox::keyPressed(Minecraft* minecraft, int key)
|
||||
if (!m_bFocused)
|
||||
return;
|
||||
|
||||
bool bShiftPressed = minecraft->platform()->shiftPressed();
|
||||
|
||||
#ifndef HANDLE_CHARS_SEPARATELY
|
||||
bool bShiftPressed = minecraft->platform()->shiftPressed();
|
||||
|
||||
char chr = '\0';
|
||||
if (key >= AKEYCODE_A && key <= AKEYCODE_Z)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user