Some minor code cleanup.

This commit is contained in:
Leon Styhre 2021-03-19 18:25:37 +01:00
parent 87e6837980
commit adaec71f5b
4 changed files with 7 additions and 7 deletions

View file

@ -515,7 +515,7 @@ void GuiMenu::openSoundSettings()
setVolume(static_cast<int>(std::round(system_volume->getValue())));
// Explicitly delete the VolumeControl instance so that it will reinitialize the
// next time the menu is entered. This is the easiest way to detect new default
// audio devices or changes in audio volume done by the operating system.
// audio devices or changes to the audio volume done by the operating system.
VolumeControl::getInstance()->deleteInstance();
});
#endif

View file

@ -43,7 +43,7 @@
int SDL_USER_CECBUTTONDOWN = -1;
int SDL_USER_CECBUTTONUP = -1;
InputManager* InputManager::mInstance = nullptr;
InputManager* InputManager::sInstance = nullptr;
InputManager::InputManager() : mKeyboardInputConfig(nullptr)
{
@ -56,10 +56,10 @@ InputManager::~InputManager()
InputManager* InputManager::getInstance()
{
if (!mInstance)
mInstance = new InputManager();
if (!sInstance)
sInstance = new InputManager();
return mInstance;
return sInstance;
}
void InputManager::init()

View file

@ -54,7 +54,7 @@ public:
private:
InputManager();
static InputManager* mInstance;
static InputManager* sInstance;
static const int DEADZONE = 23000;

View file

@ -82,7 +82,7 @@ namespace Renderer
LOG(LogInfo) << "Creating window...";
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
LOG(LogError) << "Couldn't initialize SDL: " << SDL_GetError() << ".";
LOG(LogError) << "Couldn't initialize SDL: " << SDL_GetError();
return false;
}