mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use jss for many Json fields.
* Document JsonFields. * Remove some unused JsonFields values.
This commit is contained in:
@@ -596,16 +596,16 @@ void
|
||||
AmendmentTableImpl<AppApiFacade>::setJson (Json::Value& v, const AmendmentState& fs)
|
||||
{
|
||||
if (!fs.mFriendlyName.empty())
|
||||
v["name"] = fs.mFriendlyName;
|
||||
v[jss::name] = fs.mFriendlyName;
|
||||
|
||||
v["supported"] = fs.mSupported;
|
||||
v["vetoed"] = fs.mVetoed;
|
||||
v[jss::supported] = fs.mSupported;
|
||||
v[jss::vetoed] = fs.mVetoed;
|
||||
|
||||
if (fs.mEnabled)
|
||||
v["enabled"] = true;
|
||||
v[jss::enabled] = true;
|
||||
else
|
||||
{
|
||||
v["enabled"] = false;
|
||||
v[jss::enabled] = false;
|
||||
|
||||
if (m_lastReport != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user