Update AW's.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2022-02-17 09:36:26 +00:00
parent 048391981d
commit 4bd23597a7

View file

@ -5,27 +5,16 @@
//===========================================================================
static std::string& RegGetSlotSection(UINT slot)
static inline std::string RegGetSlotSection(UINT slot)
{
static std::string section;
if (slot == SLOT_AUX)
{
section = REG_CONFIG_SLOT_AUX;
}
else
{
section = REG_CONFIG_SLOT;
section += (char)('0' + slot);
}
return section;
return (slot == SLOT_AUX)
? std::string(REG_CONFIG_SLOT_AUX)
: (std::string(REG_CONFIG_SLOT) + (char)('0' + slot));
}
std::string& RegGetConfigSlotSection(UINT slot)
std::string RegGetConfigSlotSection(UINT slot)
{
static std::string section;
section = REG_CONFIG "\\";
section += RegGetSlotSection(slot);
return section;
return std::string(REG_CONFIG "\\") + RegGetSlotSection(slot);
}
void RegDeleteConfigSlotSection(UINT slot)