mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
LINT fixes since recent tooling update
This commit is contained in:
parent
a6a04c4b5b
commit
02a23892f9
@ -260,7 +260,7 @@ bool GUIModalMenu::preprocessEvent(const SEvent &event)
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
// clang-format on
|
||||
// clang-format on
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
@ -33,7 +33,8 @@ using namespace irr;
|
||||
using namespace irr::core;
|
||||
using namespace irr::gui;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
jump_id = 0,
|
||||
crunch_id,
|
||||
zoom_id,
|
||||
@ -61,7 +62,8 @@ typedef enum {
|
||||
joystick_center_id
|
||||
} touch_gui_button_id;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
j_forward = 0,
|
||||
j_backward,
|
||||
j_left,
|
||||
@ -69,7 +71,8 @@ typedef enum {
|
||||
j_special1
|
||||
} touch_gui_joystick_move_id;
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
AHBB_Dir_Top_Bottom,
|
||||
AHBB_Dir_Bottom_Top,
|
||||
AHBB_Dir_Left_Right,
|
||||
|
@ -2916,13 +2916,13 @@ public:
|
||||
ret[0] = unicode::BOM;
|
||||
else if (endian == unicode::EUTFEE_LITTLE)
|
||||
{
|
||||
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(ret.c_str());
|
||||
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(&ret[0]);
|
||||
*ptr8++ = unicode::BOM_ENCODE_UTF16_LE[0];
|
||||
*ptr8 = unicode::BOM_ENCODE_UTF16_LE[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(ret.c_str());
|
||||
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(&ret[0]);
|
||||
*ptr8++ = unicode::BOM_ENCODE_UTF16_BE[0];
|
||||
*ptr8 = unicode::BOM_ENCODE_UTF16_BE[1];
|
||||
}
|
||||
|
@ -24,7 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
namespace con
|
||||
{
|
||||
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
MIN_RTT,
|
||||
MAX_RTT,
|
||||
AVG_RTT,
|
||||
|
Loading…
Reference in New Issue
Block a user