mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-18 15:51:44 +00:00
Fixed error: returning 'SDL_TrayEntry **' from a function with incompatible return type 'const SDL_TrayEntry **'
This commit is contained in:
@@ -281,7 +281,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
|||||||
if (size) {
|
if (size) {
|
||||||
*size = menu->nEntries;
|
*size = menu->nEntries;
|
||||||
}
|
}
|
||||||
return menu->entries;
|
return (const SDL_TrayEntry **)menu->entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
||||||
|
@@ -494,7 +494,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
|||||||
if (size) {
|
if (size) {
|
||||||
*size = menu->nEntries;
|
*size = menu->nEntries;
|
||||||
}
|
}
|
||||||
return menu->entries;
|
return (const SDL_TrayEntry **)menu->entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
||||||
|
@@ -310,7 +310,7 @@ const SDL_TrayEntry **SDL_GetTrayEntries(SDL_TrayMenu *menu, int *size)
|
|||||||
if (size) {
|
if (size) {
|
||||||
*size = menu->nEntries;
|
*size = menu->nEntries;
|
||||||
}
|
}
|
||||||
return menu->entries;
|
return (const SDL_TrayEntry **)menu->entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
void SDL_RemoveTrayEntry(SDL_TrayEntry *entry)
|
||||||
|
Reference in New Issue
Block a user