fix compile warning

Signed-off-by: zhanghaibo <zhanghaibo0@huawei.com>
This commit is contained in:
zhanghaibo
2021-08-14 10:36:17 +08:00
parent c0abaceeff
commit 9023773dd9
+1 -1
View File
@@ -123,7 +123,7 @@ struct MouseEvent final {
int32_t id = GetId();
return { id, .x = x, .y = y, type, .time = time, .size = 0.0 };
return { .id = id, .x = x, .y = y, .type = type, .time = time, .size = 0.0 };
}
MouseEvent operator-(const Offset& offset) const