mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix some compiler warnings in newer versions of Clang. (#16733)
This commit is contained in:
parent
e5091a8ca2
commit
930a80ac86
@ -15,11 +15,11 @@
|
||||
|
||||
namespace flutter {
|
||||
|
||||
typedef struct {
|
||||
struct DartCallbackRepresentation {
|
||||
std::string name;
|
||||
std::string class_name;
|
||||
std::string library_path;
|
||||
} DartCallbackRepresentation;
|
||||
};
|
||||
|
||||
class DartCallbackCache {
|
||||
public:
|
||||
|
||||
@ -404,11 +404,11 @@ static void CommonInit(FlutterViewController* controller) {
|
||||
NSPoint locationInBackingCoordinates = [self.view convertPointToBacking:locationInView];
|
||||
FlutterPointerEvent flutterEvent = {
|
||||
.struct_size = sizeof(flutterEvent),
|
||||
.device_kind = kFlutterPointerDeviceKindMouse,
|
||||
.phase = phase,
|
||||
.timestamp = static_cast<size_t>(event.timestamp * NSEC_PER_MSEC),
|
||||
.x = locationInBackingCoordinates.x,
|
||||
.y = -locationInBackingCoordinates.y, // convertPointToBacking makes this negative.
|
||||
.timestamp = static_cast<size_t>(event.timestamp * NSEC_PER_MSEC),
|
||||
.device_kind = kFlutterPointerDeviceKindMouse,
|
||||
// If a click triggered a synthesized kAdd, don't pass the buttons in that event.
|
||||
.buttons = phase == kAdd ? 0 : _mouseState.buttons,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user