[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)
This commit is contained in:
Binh-Minh Ribler
2016-04-22 06:22:34 -05:00
parent c63f96d6e7
commit c37607eb58
30 changed files with 256 additions and 222 deletions

View File

@@ -167,7 +167,7 @@ void DataSpace::copy( const DataSpace& like_space )
try {
close();
}
catch (Exception close_error) {
catch (Exception& close_error) {
throw DataSpaceIException("DataSpace::copy", close_error.getDetailMsg());
}
} // end if
@@ -656,7 +656,7 @@ void DataSpace::p_setId(const hid_t new_id)
try {
close();
}
catch (Exception close_error) {
catch (Exception& close_error) {
throw DataSpaceIException(inMemFunc("p_setId"), close_error.getDetailMsg());
}
// reset object's id to the given id
@@ -700,7 +700,7 @@ DataSpace::~DataSpace()
{
try {
close();
} catch (Exception close_error) {
} catch (Exception& close_error) {
cerr << "DataSpace::~DataSpace - " << close_error.getDetailMsg() << endl;
}
}