PARAM_LAMBDA: Fix implementation of MatchesFile

This commit is contained in:
Jon Evans 2021-05-01 13:17:33 -04:00
parent 0427bda768
commit a82a693d20
1 changed files with 2 additions and 2 deletions

View File

@ -357,12 +357,12 @@ public:
if( std::is_same<ValueType, nlohmann::json>::value )
{
if( OPT<nlohmann::json> optval = aSettings->GetJson( m_path ) )
return *optval == m_default;
return *optval == m_getter();
}
else
{
if( OPT<ValueType> optval = aSettings->Get<ValueType>( m_path ) )
return *optval == m_default;
return *optval == m_getter();
}
// Not in file