mirror of https://github.com/libsdl-org/SDL.git
Fixed error: returning 'SDL_TrayEntry **' from a function with incompatible return type 'const SDL_TrayEntry **'
This commit is contained in:
parent
f8b13dadd7
commit
8d8649b33f
|
|
@ -281,7 +281,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
|||
if (size) {
|
||||
*size = menu->nEntries;
|
||||
}
|
||||
return menu->entries;
|
||||
return (const SDL_TrayEntry **)menu->entries;
|
||||
}
|
||||
|
||||
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
||||
|
|
|
|||
|
|
@ -494,7 +494,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
|||
if (size) {
|
||||
*size = menu->nEntries;
|
||||
}
|
||||
return menu->entries;
|
||||
return (const SDL_TrayEntry **)menu->entries;
|
||||
}
|
||||
|
||||
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
|||
if (size) {
|
||||
*size = menu->nEntries;
|
||||
}
|
||||
return menu->entries;
|
||||
return (const SDL_TrayEntry **)menu->entries;
|
||||
}
|
||||
|
||||
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
||||
|
|
|
|||
Loading…
Reference in New Issue