Skip to content

Commit 02a2389

Browse files
committedMar 14, 2019
LINT fixes since recent tooling update
1 parent a6a04c4 commit 02a2389

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed
 

Diff for: ‎src/gui/modalMenu.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ bool GUIModalMenu::preprocessEvent(const SEvent &event)
260260
return retval;
261261
}
262262
}
263-
// clang-format on
263+
// clang-format on
264264
#endif
265265
return false;
266266
}

Diff for: ‎src/gui/touchscreengui.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ using namespace irr;
3333
using namespace irr::core;
3434
using namespace irr::gui;
3535

36-
typedef enum {
36+
typedef enum
37+
{
3738
jump_id = 0,
3839
crunch_id,
3940
zoom_id,
@@ -61,15 +62,17 @@ typedef enum {
6162
joystick_center_id
6263
} touch_gui_button_id;
6364

64-
typedef enum {
65+
typedef enum
66+
{
6567
j_forward = 0,
6668
j_backward,
6769
j_left,
6870
j_right,
6971
j_special1
7072
} touch_gui_joystick_move_id;
7173

72-
typedef enum {
74+
typedef enum
75+
{
7376
AHBB_Dir_Top_Bottom,
7477
AHBB_Dir_Bottom_Top,
7578
AHBB_Dir_Left_Right,

Diff for: ‎src/irrlicht_changes/irrUString.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2916,13 +2916,13 @@ class ustring16
29162916
ret[0] = unicode::BOM;
29172917
else if (endian == unicode::EUTFEE_LITTLE)
29182918
{
2919-
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(ret.c_str());
2919+
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(&ret[0]);
29202920
*ptr8++ = unicode::BOM_ENCODE_UTF16_LE[0];
29212921
*ptr8 = unicode::BOM_ENCODE_UTF16_LE[1];
29222922
}
29232923
else
29242924
{
2925-
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(ret.c_str());
2925+
uchar8_t* ptr8 = reinterpret_cast<uchar8_t*>(&ret[0]);
29262926
*ptr8++ = unicode::BOM_ENCODE_UTF16_BE[0];
29272927
*ptr8 = unicode::BOM_ENCODE_UTF16_BE[1];
29282928
}

Diff for: ‎src/network/peerhandler.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
2424
namespace con
2525
{
2626

27-
typedef enum {
27+
typedef enum
28+
{
2829
MIN_RTT,
2930
MAX_RTT,
3031
AVG_RTT,

0 commit comments

Comments
 (0)