Skip to content

Commit 0ff4e7e

Browse files
committed
Code formatting
1 parent 818cd3a commit 0ff4e7e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

modules/yup_gui/desktop/yup_Desktop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ ComponentNative::Ptr Desktop::getNativeComponent (void* userdata) const
255255

256256
auto it = nativeComponents.find (userdata);
257257
if (it != nativeComponents.end())
258-
return ComponentNative::Ptr{ it->second };
258+
return ComponentNative::Ptr { it->second };
259259

260260
return nullptr;
261261
}

modules/yup_gui/native/yup_Windowing_sdl2.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,8 +1342,7 @@ int displayEventDispatcher (void* userdata, SDL_Event* event)
13421342
MouseEvent mouseEvent (
13431343
static_cast<MouseEvent::Buttons> (event->motion.state),
13441344
keyModifiers,
1345-
cursorPosition
1346-
);
1345+
cursorPosition);
13471346

13481347
// Call drag handler if any mouse buttons are pressed, otherwise call move handler
13491348
if (event->motion.state != 0)
@@ -1365,8 +1364,7 @@ int displayEventDispatcher (void* userdata, SDL_Event* event)
13651364
MouseEvent mouseEvent (
13661365
button,
13671366
keyModifiers,
1368-
cursorPosition
1369-
);
1367+
cursorPosition);
13701368

13711369
desktop->handleGlobalMouseDown (mouseEvent);
13721370
break;
@@ -1383,8 +1381,7 @@ int displayEventDispatcher (void* userdata, SDL_Event* event)
13831381
MouseEvent mouseEvent (
13841382
button,
13851383
keyModifiers,
1386-
cursorPosition
1387-
);
1384+
cursorPosition);
13881385

13891386
desktop->handleGlobalMouseUp (mouseEvent);
13901387
break;
@@ -1401,8 +1398,7 @@ int displayEventDispatcher (void* userdata, SDL_Event* event)
14011398
MouseEvent mouseEvent (
14021399
MouseEvent::noButtons,
14031400
keyModifiers,
1404-
cursorPosition
1405-
);
1401+
cursorPosition);
14061402

14071403
desktop->handleGlobalMouseWheel (mouseEvent, mouseWheelData);
14081404
break;

0 commit comments

Comments
 (0)