mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 08:40:59 +00:00
OSYSTEM: Improed const'ness of the buildHelpDialogData() call
This commit is contained in:
parent
b45e812a13
commit
2bea791278
@ -1024,7 +1024,7 @@ void *OSystem_Android::getOpenGLProcAddress(const char *name) const {
|
||||
}
|
||||
#endif
|
||||
|
||||
static const char *helpTabs[] = {
|
||||
static const char * const helpTabs[] = {
|
||||
_s("Controls"),
|
||||
"",
|
||||
_s(
|
||||
@ -1128,7 +1128,7 @@ _s(
|
||||
0 // End of list
|
||||
};
|
||||
|
||||
const char **OSystem_Android::buildHelpDialogData() {
|
||||
const char * const *OSystem_Android::buildHelpDialogData() {
|
||||
return helpTabs;
|
||||
}
|
||||
|
||||
|
@ -262,7 +262,7 @@ public:
|
||||
bool isRunningInMainThread() { return pthread_self() == _main_thread; }
|
||||
#endif
|
||||
|
||||
virtual const char **buildHelpDialogData() override;
|
||||
virtual const char * const *buildHelpDialogData() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1006,7 +1006,7 @@ void OSystem_SDL::clearGraphicsModes() {
|
||||
}
|
||||
#endif
|
||||
|
||||
static const char *helpTabs[] = {
|
||||
static const char * const helpTabs[] = {
|
||||
_s("Keyboard"),
|
||||
"",
|
||||
_s(
|
||||
@ -1046,6 +1046,6 @@ _s(
|
||||
0,
|
||||
};
|
||||
|
||||
const char **OSystem_SDL::buildHelpDialogData() {
|
||||
const char * const *OSystem_SDL::buildHelpDialogData() {
|
||||
return helpTabs;
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ protected:
|
||||
#endif
|
||||
|
||||
virtual uint32 getOSDoubleClickTime() const { return 0; }
|
||||
virtual const char **buildHelpDialogData() override;
|
||||
virtual const char * const *buildHelpDialogData() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1839,7 +1839,7 @@ public:
|
||||
*
|
||||
* The string list is null-terminated.
|
||||
*/
|
||||
virtual const char **buildHelpDialogData() { return nullptr; }
|
||||
virtual const char * const *buildHelpDialogData() { return nullptr; }
|
||||
|
||||
/**
|
||||
* Notify the backend that the settings editable from the game tab in the
|
||||
|
@ -77,7 +77,7 @@ HelpDialog::HelpDialog()
|
||||
|
||||
|
||||
// Now add backend-specific tabs if any
|
||||
const char **backendTabs = g_system->buildHelpDialogData();
|
||||
const char * const *backendTabs = g_system->buildHelpDialogData();
|
||||
|
||||
if (backendTabs) {
|
||||
while (*backendTabs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user