SimpleConfig: Put was setting key=key, not key=value.
This commit is contained in:
parent
33675c18ec
commit
94672bba98
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.22)
|
||||
project(scsl LANGUAGES CXX
|
||||
VERSION 1.1.2
|
||||
VERSION 1.1.3
|
||||
DESCRIPTION "Shimmering Clarity Standard Library")
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
|
|
@ -220,7 +220,7 @@ SimpleConfig::Get(const char *key, std::string defaultValue)
|
|||
void
|
||||
SimpleConfig::Put(std::string &key, const std::string value)
|
||||
{
|
||||
this->vars[key] = std::move(key);
|
||||
this->vars[key] = std::move(value);
|
||||
}
|
||||
|
||||
|
||||
|
@ -228,7 +228,7 @@ void
|
|||
SimpleConfig::Put(const char *key, const std::string value)
|
||||
{
|
||||
auto keyStr = std::string(key);
|
||||
this->vars[std::move(keyStr)] = std::move(key);
|
||||
this->vars[std::move(keyStr)] = std::move(value);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue