mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
Adding variable initialization
Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
This commit is contained in:
parent
7f8e7c6d15
commit
47a2d5e48f
@ -147,7 +147,7 @@ ArrayType& ArrayType::operator=(const ArrayType& rhs)
|
||||
//--------------------------------------------------------------------------
|
||||
DataType* ArrayType::decode() const
|
||||
{
|
||||
hid_t encoded_arrtype_id;
|
||||
hid_t encoded_arrtype_id = H5I_INVALID_HID;
|
||||
try {
|
||||
encoded_arrtype_id = p_decode();
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ CompType::CompType(const H5Location& loc, const H5std_string& dtype_name) : Data
|
||||
//--------------------------------------------------------------------------
|
||||
DataType* CompType::decode() const
|
||||
{
|
||||
hid_t encoded_cmptype_id;
|
||||
hid_t encoded_cmptype_id = H5I_INVALID_HID;
|
||||
try {
|
||||
encoded_cmptype_id = p_decode();
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ hid_t DataType::p_decode() const
|
||||
//--------------------------------------------------------------------------
|
||||
DataType* DataType::decode() const
|
||||
{
|
||||
hid_t encoded_dtype_id;
|
||||
hid_t encoded_dtype_id = H5I_INVALID_HID;
|
||||
try {
|
||||
encoded_dtype_id = p_decode();
|
||||
}
|
||||
|
@ -154,16 +154,16 @@ EnumType::EnumType(const H5Location& loc, const H5std_string& dtype_name) : Data
|
||||
//--------------------------------------------------------------------------
|
||||
DataType* EnumType::decode() const
|
||||
{
|
||||
hid_t encoded_cmptype_id;
|
||||
hid_t encoded_enumtype_id = H5I_INVALID_HID;
|
||||
try {
|
||||
encoded_cmptype_id = p_decode();
|
||||
encoded_enumtype_id = p_decode();
|
||||
}
|
||||
catch (DataTypeIException &err) {
|
||||
throw;
|
||||
}
|
||||
EnumType *encoded_cmptype = new EnumType;
|
||||
encoded_cmptype->p_setId(encoded_cmptype_id);
|
||||
return(encoded_cmptype);
|
||||
EnumType *encoded_enumtype = new EnumType;
|
||||
encoded_enumtype->p_setId(encoded_enumtype_id);
|
||||
return(encoded_enumtype);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
@ -136,7 +136,7 @@ FloatType::FloatType(const H5Location& loc, const H5std_string& dtype_name) : At
|
||||
//--------------------------------------------------------------------------
|
||||
DataType* FloatType::decode() const
|
||||
{
|
||||
hid_t encoded_flttype_id;
|
||||
hid_t encoded_flttype_id = H5I_INVALID_HID;
|
||||
try {
|
||||
encoded_flttype_id = p_decode();
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ IntType::IntType(const H5Location& loc, const H5std_string& dtype_name) : AtomTy
|
||||
//--------------------------------------------------------------------------
|
||||
DataType* IntType::decode() const
|
||||
{
|
||||
hid_t encoded_inttype_id;
|
||||
hid_t encoded_inttype_id = H5I_INVALID_HID;
|
||||
try {
|
||||
encoded_inttype_id = p_decode();
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ StrType::StrType(const H5Location& loc, const H5std_string& dtype_name) : AtomTy
|
||||
//--------------------------------------------------------------------------
|
||||
DataType* StrType::decode() const
|
||||
{
|
||||
hid_t encoded_strtype_id;
|
||||
hid_t encoded_strtype_id = H5I_INVALID_HID;
|
||||
try {
|
||||
encoded_strtype_id = p_decode();
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ VarLenType::VarLenType(const H5Location& loc, const H5std_string& dtype_name) :
|
||||
//--------------------------------------------------------------------------
|
||||
DataType* VarLenType::decode() const
|
||||
{
|
||||
hid_t encoded_vltype_id;
|
||||
hid_t encoded_vltype_id = H5I_INVALID_HID;
|
||||
try {
|
||||
encoded_vltype_id = p_decode();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user