Fix compile warnings in gcc/clang.

This commit is contained in:
Stephen Anthony 2021-10-29 14:39:51 -02:30
parent e6af23d6c1
commit 375c56ae2d
2 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ void GlobalKeyHandler::setDirectSetting(const Setting setting)
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const GlobalKeyHandler::Group GlobalKeyHandler::getGroup() const
GlobalKeyHandler::Group GlobalKeyHandler::getGroup() const
{
if(mySetting >= Setting::START_DEBUG_ADJ && mySetting <= Setting::END_DEBUG_ADJ)
return Group::DEBUG;
@ -315,7 +315,7 @@ const GlobalKeyHandler::Function GlobalKeyHandler::cycleSetting(int direction)
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const GlobalKeyHandler::SettingData GlobalKeyHandler::getSettingData(const Setting setting) const
GlobalKeyHandler::SettingData GlobalKeyHandler::getSettingData(const Setting setting) const
{
// Notes:
// - all setting methods MUST always display a message

View File

@ -161,11 +161,11 @@ class GlobalKeyHandler
private:
// Get group based on given setting
const Group getGroup() const;
Group getGroup() const;
// Cycle settings using given direction (can be 0)
const Function cycleSetting(int direction);
// Get adjustment function and if it is repeated
const SettingData getSettingData(const Setting setting) const;
SettingData getSettingData(const Setting setting) const;
PhysicalJoystickHandler& joyHandler() const { return myOSystem.eventHandler().joyHandler(); }
PhysicalKeyboardHandler& keyHandler() const { return myOSystem.eventHandler().keyHandler(); }