mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-17 06:50:45 +08:00
mac/app: make const char pointers to const pointers
they were meant to be immutable. imported in swift as mutable pointer, which leads to errors with the strict concurrency in swift 6. make the pointers const.
This commit is contained in:
@@ -49,8 +49,8 @@ static const int SWIFT_MBTN9 = MP_MBTN9;
|
||||
static const int SWIFT_KEY_MOUSE_LEAVE = MP_KEY_MOUSE_LEAVE;
|
||||
static const int SWIFT_KEY_MOUSE_ENTER = MP_KEY_MOUSE_ENTER;
|
||||
|
||||
static const char *swift_mpv_version = mpv_version;
|
||||
static const char *swift_mpv_copyright = mpv_copyright;
|
||||
static const char *const swift_mpv_version = mpv_version;
|
||||
static const char *const swift_mpv_copyright = mpv_copyright;
|
||||
|
||||
NSData *app_bridge_icon(void);
|
||||
void app_bridge_tarray_append(void *t, char ***a, int *i, char *s);
|
||||
|
||||
Reference in New Issue
Block a user