Tabs to spaces.
This commit is contained in:
Родитель
8357e50afb
Коммит
5071b4324a
|
@ -294,17 +294,17 @@ Vector<String> JSONValue::GetChildNames() const
|
|||
|
||||
Vector<String> JSONValue::GetValueNames() const
|
||||
{
|
||||
Vector<String> ret;
|
||||
if (!IsObject())
|
||||
return ret;
|
||||
Vector<String> ret;
|
||||
if (!IsObject())
|
||||
return ret;
|
||||
|
||||
for (Value::ConstMemberIterator i = value_->MemberBegin(); i != value_->MemberEnd(); ++i)
|
||||
{
|
||||
if (i->value.GetType() != kArrayType && i->value.GetType() != kObjectType)
|
||||
ret.Push(i->name.GetString());
|
||||
}
|
||||
for (Value::ConstMemberIterator i = value_->MemberBegin(); i != value_->MemberEnd(); ++i)
|
||||
{
|
||||
if (i->value.GetType() != kArrayType && i->value.GetType() != kObjectType)
|
||||
ret.Push(i->name.GetString());
|
||||
}
|
||||
|
||||
return ret;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int JSONValue::GetInt(const String& name) const
|
||||
|
|
|
@ -127,8 +127,8 @@ public:
|
|||
bool IsObject() const;
|
||||
/// Return child names (only object and array child name).
|
||||
Vector<String> GetChildNames() const;
|
||||
/// Return member value names.
|
||||
Vector<String> GetValueNames() const;
|
||||
/// Return member value names.
|
||||
Vector<String> GetValueNames() const;
|
||||
/// Return int.
|
||||
int GetInt(const String& name) const;
|
||||
/// Return bool.
|
||||
|
|
Загрузка…
Ссылка в новой задаче