few cosmetic changes

This commit is contained in:
aleks-f
2012-12-03 20:35:49 -06:00
parent a02eeb6638
commit 1138f439af
3 changed files with 15 additions and 13 deletions

View File

@@ -134,11 +134,8 @@ public:
return value;
}
void add(const Dynamic::Var& value)
void add(const Dynamic::Var& value);
/// Add the given value to the array
{
_values.push_back(value);
}
void stringify(std::ostream& out, unsigned int indent) const;
/// Prints the array to out. When indent is 0, the array
@@ -178,14 +175,9 @@ inline bool Array::isArray(unsigned int index) const
}
inline bool Array::isNull(unsigned int index) const
inline void Array::add(const Dynamic::Var& value)
{
if ( index < _values.size() )
{
Dynamic::Var value = _values[index];
return value.isEmpty();
}
return true;
_values.push_back(value);
}