Add missing key
This commit is contained in:
parent
9dc5054fc0
commit
ed6dc601cc
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ namespace Garbage
|
||||||
using namespace SimpleConfImplementation;
|
using namespace SimpleConfImplementation;
|
||||||
|
|
||||||
if (auto it = mPairs.find(key); it != mPairs.end()) {
|
if (auto it = mPairs.find(key); it != mPairs.end()) {
|
||||||
return Convert<T>(it->second);
|
return Convert<T>(key, it->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
|
@ -295,7 +295,7 @@ namespace Garbage
|
||||||
using namespace SimpleConfImplementation;
|
using namespace SimpleConfImplementation;
|
||||||
|
|
||||||
if (auto it = mPairs.find(key); it != mPairs.end()) {
|
if (auto it = mPairs.find(key); it != mPairs.end()) {
|
||||||
return Convert<T>(it->second);
|
return Convert<T>(key, it->second);
|
||||||
}
|
}
|
||||||
|
|
||||||
if constexpr (std::is_same_v<RequireValue, Required>) {
|
if constexpr (std::is_same_v<RequireValue, Required>) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue