mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T689 Settings validation can produce more descriptive error messages.
This commit is contained in:
@@ -444,7 +444,10 @@ namespace BlackMisc
|
||||
|
||||
private:
|
||||
template <typename F>
|
||||
static Private::CValuePage::Validator wrap(F func) { return [func](const CVariant &value)->bool { return func(value.to<T>()); }; }
|
||||
static Private::CValuePage::Validator wrap(F func)
|
||||
{
|
||||
return [func](const CVariant &value, QString &reason) -> bool { return func(value.to<T>(), reason); };
|
||||
}
|
||||
static Private::CValuePage::Validator wrap(std::nullptr_t) { return {}; }
|
||||
|
||||
template <typename F>
|
||||
|
||||
Reference in New Issue
Block a user