File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -201,8 +201,9 @@ Expected<StubT> getRequiredValue(
201
201
template <typename JsonT, typename StubT = JsonT>
202
202
Expected<StubT> getRequiredValue (
203
203
TBDKey Key, const Object *Obj,
204
- std::function<std::optional<JsonT>(const Object *, StringRef)> GetValue,
205
- StubT DefaultValue, std::function<std::optional<StubT>(JsonT)> Validate) {
204
+ std::function<std::optional<JsonT>(const Object *, StringRef)> const
205
+ GetValue,
206
+ StubT DefaultValue, function_ref<std::optional<StubT>(JsonT)> Validate) {
206
207
std::optional<JsonT> Val = GetValue (Obj, Keys[Key]);
207
208
if (!Val)
208
209
return DefaultValue;
@@ -215,7 +216,7 @@ Expected<StubT> getRequiredValue(
215
216
}
216
217
217
218
Error collectFromArray (TBDKey Key, const Object *Obj,
218
- std::function <void (StringRef)> Append,
219
+ function_ref <void (StringRef)> Append,
219
220
bool IsRequired = false) {
220
221
const auto *Values = Obj->getArray (Keys[Key]);
221
222
if (!Values) {
You can’t perform that action at this time.
0 commit comments