Add missing key

This commit is contained in:
Viktor Soukup 2025-06-03 09:03:52 +02:00
parent 6cfa60dcd5
commit 876b2e37bd

View file

@ -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>) {