Revert one modification

This commit is contained in:
Alexey Milovidov 2020-08-04 15:29:24 +03:00
parent d91471ea00
commit c204035b55

View File

@ -834,10 +834,9 @@ bool BaseSettings<Traits_>::SettingFieldRef::isCustom() const
\
template class BaseSettings<SETTINGS_TRAITS_NAME>;
/// Wrapped in lambda to avoid too large stack frame.
//-V:IMPLEMENT_SETTINGS:501
#define IMPLEMENT_SETTINGS_TRAITS_(TYPE, NAME, DEFAULT, DESCRIPTION, FLAGS) \
[&]{ res.field_infos.emplace_back( \
res.field_infos.emplace_back( \
FieldInfo{#NAME, #TYPE, DESCRIPTION, FLAGS & IMPORTANT, \
[](const Field & value) -> Field { return static_cast<Field>(SettingField##TYPE{value}); }, \
[](const Field & value) -> String { return SettingField##TYPE{value}.toString(); }, \
@ -850,5 +849,5 @@ bool BaseSettings<Traits_>::SettingFieldRef::isCustom() const
[](Data & data) { data.NAME = SettingField##TYPE{DEFAULT}; }, \
[](const Data & data, WriteBuffer & out) { data.NAME.writeBinary(out); }, \
[](Data & data, ReadBuffer & in) { data.NAME.readBinary(in); } \
}); }();
});
}