mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 10:16:50 +02:00
RetroFE constructor arguments set to pass by reference.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "../Database/Configuration.h"
|
||||
#include "../Utility/Log.h"
|
||||
|
||||
UserInput::UserInput(Configuration *c)
|
||||
UserInput::UserInput(Configuration &c)
|
||||
: Config(c)
|
||||
{
|
||||
}
|
||||
@@ -54,7 +54,7 @@ bool UserInput::MapKey(std::string keyDescription, KeyCode_E key)
|
||||
|
||||
std::string configKey = "controls." + keyDescription;
|
||||
|
||||
if(!Config->GetProperty(configKey, description))
|
||||
if(!Config.GetProperty(configKey, description))
|
||||
{
|
||||
Logger::Write(Logger::ZONE_ERROR, "Configuration", "Missing property " + configKey);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user