summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CompType.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 11:22:34 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 11:22:34 (GMT)
commitc37607eb58994041cbeaabdab5f1e9902794a3e9 (patch)
treeb96792d17d5bce03ad862b556f137a7b06c1449d /c++/src/H5CompType.cpp
parentc63f96d6e78cfe98de8001b662ec685467fd65df (diff)
downloadhdf5-c37607eb58994041cbeaabdab5f1e9902794a3e9.zip
hdf5-c37607eb58994041cbeaabdab5f1e9902794a3e9.tar.gz
hdf5-c37607eb58994041cbeaabdab5f1e9902794a3e9.tar.bz2
[svn-r29759] Purpose: Code improvements
Description: - Changed object in catch statements to reference - Replaced old-style casts or reinterpret_cast with static_cast - Removed unused name H5Library::need_cleanup - Removed Exception::printError from documentation Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5CompType.cpp')
-rw-r--r--c++/src/H5CompType.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/c++/src/H5CompType.cpp b/c++/src/H5CompType.cpp
index 82575d6..5668ec3 100644
--- a/c++/src/H5CompType.cpp
+++ b/c++/src/H5CompType.cpp
@@ -232,7 +232,7 @@ DataType CompType::getMemberDataType( unsigned member_num ) const
f_DataType_setId(&datatype, p_get_member_type(member_num));
return(datatype);
}
- catch (DataTypeIException E) {
+ catch (DataTypeIException& E) {
throw DataTypeIException("CompType::getMemberDataType", E.getDetailMsg());
}
}
@@ -254,7 +254,7 @@ ArrayType CompType::getMemberArrayType( unsigned member_num ) const
arraytype.setArrayInfo();
return(arraytype);
}
- catch (DataTypeIException E) {
+ catch (DataTypeIException& E) {
throw DataTypeIException("CompType::getMemberArrayType", E.getDetailMsg());
}
}
@@ -275,7 +275,7 @@ CompType CompType::getMemberCompType( unsigned member_num ) const
f_DataType_setId(&comptype, p_get_member_type(member_num));
return(comptype);
}
- catch (DataTypeIException E) {
+ catch (DataTypeIException& E) {
throw DataTypeIException("CompType::getMemberCompType", E.getDetailMsg());
}
}
@@ -296,7 +296,7 @@ EnumType CompType::getMemberEnumType( unsigned member_num ) const
f_DataType_setId(&enumtype, p_get_member_type(member_num));
return(enumtype);
}
- catch (DataTypeIException E) {
+ catch (DataTypeIException& E) {
throw DataTypeIException("CompType::getMemberEnumType", E.getDetailMsg());
}
}
@@ -317,7 +317,7 @@ IntType CompType::getMemberIntType( unsigned member_num ) const
f_DataType_setId(&inttype, p_get_member_type(member_num));
return(inttype);
}
- catch (DataTypeIException E) {
+ catch (DataTypeIException& E) {
throw DataTypeIException("CompType::getMemberIntType", E.getDetailMsg());
}
}
@@ -338,7 +338,7 @@ FloatType CompType::getMemberFloatType( unsigned member_num ) const
f_DataType_setId(&floatype, p_get_member_type(member_num));
return(floatype);
}
- catch (DataTypeIException E) {
+ catch (DataTypeIException& E) {
throw DataTypeIException("CompType::getMemberFloatType", E.getDetailMsg());
}
}
@@ -359,7 +359,7 @@ StrType CompType::getMemberStrType( unsigned member_num ) const
f_DataType_setId(&strtype, p_get_member_type(member_num));
return(strtype);
}
- catch (DataTypeIException E) {
+ catch (DataTypeIException& E) {
throw DataTypeIException("CompType::getMemberStrType", E.getDetailMsg());
}
}
@@ -380,7 +380,7 @@ VarLenType CompType::getMemberVarLenType( unsigned member_num ) const
f_DataType_setId(&varlentype, p_get_member_type(member_num));
return(varlentype);
}
- catch (DataTypeIException E) {
+ catch (DataTypeIException& E) {
throw DataTypeIException("CompType::getMemberVarLenType", E.getDetailMsg());
}
}