OSYSTEM: Improed const'ness of the buildHelpDialogData() call

This commit is contained in:
Eugene Sandulenko 2023-09-16 22:54:07 +02:00
parent b45e812a13
commit 2bea791278
6 changed files with 8 additions and 8 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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;
}

View File

@ -191,7 +191,7 @@ protected:
#endif
virtual uint32 getOSDoubleClickTime() const { return 0; }
virtual const char **buildHelpDialogData() override;
virtual const char * const *buildHelpDialogData() override;
};
#endif

View File

@ -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

View File

@ -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) {