mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
minor improvements to documentation and style
This commit is contained in:
@@ -48,7 +48,7 @@ void ParseHandler::startObject()
|
||||
{
|
||||
Object::Ptr newObj = new Object(_preserveObjectOrder);
|
||||
|
||||
if ( _stack.empty() ) // The first object
|
||||
if (_stack.empty()) // The first object
|
||||
{
|
||||
_result = newObj;
|
||||
}
|
||||
@@ -56,12 +56,12 @@ void ParseHandler::startObject()
|
||||
{
|
||||
Var parent = _stack.top();
|
||||
|
||||
if ( parent.type() == typeid(Array::Ptr) )
|
||||
if (parent.type() == typeid(Array::Ptr))
|
||||
{
|
||||
Array::Ptr arr = parent.extract<Array::Ptr>();
|
||||
arr->add(newObj);
|
||||
}
|
||||
else if ( parent.type() == typeid(Object::Ptr) )
|
||||
else if (parent.type() == typeid(Object::Ptr))
|
||||
{
|
||||
poco_assert_dbg(!_key.empty());
|
||||
Object::Ptr obj = parent.extract<Object::Ptr>();
|
||||
@@ -84,7 +84,7 @@ void ParseHandler::startArray()
|
||||
{
|
||||
Array::Ptr newArr = new Array();
|
||||
|
||||
if ( _stack.empty() ) // The first array
|
||||
if (_stack.empty()) // The first array
|
||||
{
|
||||
_result = newArr;
|
||||
}
|
||||
@@ -92,12 +92,12 @@ void ParseHandler::startArray()
|
||||
{
|
||||
Var parent = _stack.top();
|
||||
|
||||
if ( parent.type() == typeid(Array::Ptr) )
|
||||
if (parent.type() == typeid(Array::Ptr))
|
||||
{
|
||||
Array::Ptr arr = parent.extract<Array::Ptr>();
|
||||
arr->add(newArr);
|
||||
}
|
||||
else if ( parent.type() == typeid(Object::Ptr) )
|
||||
else if (parent.type() == typeid(Object::Ptr))
|
||||
{
|
||||
poco_assert_dbg(!_key.empty());
|
||||
Object::Ptr obj = parent.extract<Object::Ptr>();
|
||||
@@ -126,12 +126,12 @@ void ParseHandler::setValue(const Var& value)
|
||||
{
|
||||
Var parent = _stack.top();
|
||||
|
||||
if ( parent.type() == typeid(Array::Ptr) )
|
||||
if (parent.type() == typeid(Array::Ptr))
|
||||
{
|
||||
Array::Ptr arr = parent.extract<Array::Ptr>();
|
||||
arr->add(value);
|
||||
}
|
||||
else if ( parent.type() == typeid(Object::Ptr) )
|
||||
else if (parent.type() == typeid(Object::Ptr))
|
||||
{
|
||||
Object::Ptr obj = parent.extract<Object::Ptr>();
|
||||
obj->set(_key, value);
|
||||
|
||||
Reference in New Issue
Block a user