mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-06 00:31:10 +01:00
Fixed constructor initializer list order warnings/errors.
This commit is contained in:
parent
5fb0f09cbb
commit
3b556ec633
@ -258,8 +258,8 @@ ValueInternalArray::ValueInternalArray()
|
|||||||
|
|
||||||
ValueInternalArray::ValueInternalArray( const ValueInternalArray &other )
|
ValueInternalArray::ValueInternalArray( const ValueInternalArray &other )
|
||||||
: pages_( 0 )
|
: pages_( 0 )
|
||||||
, pageCount_( 0 )
|
|
||||||
, size_( other.size_ )
|
, size_( other.size_ )
|
||||||
|
, pageCount_( 0 )
|
||||||
{
|
{
|
||||||
PageIndex minNewPages = other.size_ / itemsPerPage;
|
PageIndex minNewPages = other.size_ / itemsPerPage;
|
||||||
arrayAllocator()->reallocateArrayPageIndex( pages_, pageCount_, minNewPages );
|
arrayAllocator()->reallocateArrayPageIndex( pages_, pageCount_, minNewPages );
|
||||||
|
@ -236,10 +236,10 @@ Value::CZString::isStaticString() const
|
|||||||
Value::Value( ValueType type )
|
Value::Value( ValueType type )
|
||||||
: type_( type )
|
: type_( type )
|
||||||
, allocated_( 0 )
|
, allocated_( 0 )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
switch ( type )
|
switch ( type )
|
||||||
{
|
{
|
||||||
@ -280,20 +280,20 @@ Value::Value( ValueType type )
|
|||||||
#if defined(JSON_HAS_INT64)
|
#if defined(JSON_HAS_INT64)
|
||||||
Value::Value( UInt value )
|
Value::Value( UInt value )
|
||||||
: type_( uintValue )
|
: type_( uintValue )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.uint_ = value;
|
value_.uint_ = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
Value::Value( Int value )
|
Value::Value( Int value )
|
||||||
: type_( intValue )
|
: type_( intValue )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.int_ = value;
|
value_.int_ = value;
|
||||||
}
|
}
|
||||||
@ -303,10 +303,10 @@ Value::Value( Int value )
|
|||||||
|
|
||||||
Value::Value( Int64 value )
|
Value::Value( Int64 value )
|
||||||
: type_( intValue )
|
: type_( intValue )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.int_ = value;
|
value_.int_ = value;
|
||||||
}
|
}
|
||||||
@ -314,20 +314,20 @@ Value::Value( Int64 value )
|
|||||||
|
|
||||||
Value::Value( UInt64 value )
|
Value::Value( UInt64 value )
|
||||||
: type_( uintValue )
|
: type_( uintValue )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.uint_ = value;
|
value_.uint_ = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
Value::Value( double value )
|
Value::Value( double value )
|
||||||
: type_( realValue )
|
: type_( realValue )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.real_ = value;
|
value_.real_ = value;
|
||||||
}
|
}
|
||||||
@ -335,10 +335,10 @@ Value::Value( double value )
|
|||||||
Value::Value( const char *value )
|
Value::Value( const char *value )
|
||||||
: type_( stringValue )
|
: type_( stringValue )
|
||||||
, allocated_( true )
|
, allocated_( true )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.string_ = duplicateStringValue( value );
|
value_.string_ = duplicateStringValue( value );
|
||||||
}
|
}
|
||||||
@ -348,10 +348,10 @@ Value::Value( const char *beginValue,
|
|||||||
const char *endValue )
|
const char *endValue )
|
||||||
: type_( stringValue )
|
: type_( stringValue )
|
||||||
, allocated_( true )
|
, allocated_( true )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.string_ = duplicateStringValue( beginValue,
|
value_.string_ = duplicateStringValue( beginValue,
|
||||||
(unsigned int)(endValue - beginValue) );
|
(unsigned int)(endValue - beginValue) );
|
||||||
@ -361,10 +361,10 @@ Value::Value( const char *beginValue,
|
|||||||
Value::Value( const std::string &value )
|
Value::Value( const std::string &value )
|
||||||
: type_( stringValue )
|
: type_( stringValue )
|
||||||
, allocated_( true )
|
, allocated_( true )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.string_ = duplicateStringValue( value.c_str(),
|
value_.string_ = duplicateStringValue( value.c_str(),
|
||||||
(unsigned int)value.length() );
|
(unsigned int)value.length() );
|
||||||
@ -374,10 +374,10 @@ Value::Value( const std::string &value )
|
|||||||
Value::Value( const StaticString &value )
|
Value::Value( const StaticString &value )
|
||||||
: type_( stringValue )
|
: type_( stringValue )
|
||||||
, allocated_( false )
|
, allocated_( false )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.string_ = const_cast<char *>( value.c_str() );
|
value_.string_ = const_cast<char *>( value.c_str() );
|
||||||
}
|
}
|
||||||
@ -387,10 +387,10 @@ Value::Value( const StaticString &value )
|
|||||||
Value::Value( const CppTL::ConstString &value )
|
Value::Value( const CppTL::ConstString &value )
|
||||||
: type_( stringValue )
|
: type_( stringValue )
|
||||||
, allocated_( true )
|
, allocated_( true )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.string_ = duplicateStringValue( value, value.length() );
|
value_.string_ = duplicateStringValue( value, value.length() );
|
||||||
}
|
}
|
||||||
@ -398,10 +398,10 @@ Value::Value( const CppTL::ConstString &value )
|
|||||||
|
|
||||||
Value::Value( bool value )
|
Value::Value( bool value )
|
||||||
: type_( booleanValue )
|
: type_( booleanValue )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
value_.bool_ = value;
|
value_.bool_ = value;
|
||||||
}
|
}
|
||||||
@ -409,10 +409,10 @@ Value::Value( bool value )
|
|||||||
|
|
||||||
Value::Value( const Value &other )
|
Value::Value( const Value &other )
|
||||||
: type_( other.type_ )
|
: type_( other.type_ )
|
||||||
, comments_( 0 )
|
|
||||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
, itemIsUsed_( 0 )
|
, itemIsUsed_( 0 )
|
||||||
#endif
|
#endif
|
||||||
|
, comments_( 0 )
|
||||||
{
|
{
|
||||||
switch ( type_ )
|
switch ( type_ )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user