diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-03-09 03:30:02 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-03-09 03:30:02 (GMT) |
commit | 20bfdeb2c16ded5bfefed3a505a73dbaca6e7e60 (patch) | |
tree | 2154822bcba629630db7bc2373c6c51536a69bf1 /c++/src | |
parent | 67432599a3b53496d0fa357634447356d44c81e5 (diff) | |
download | hdf5-20bfdeb2c16ded5bfefed3a505a73dbaca6e7e60.zip hdf5-20bfdeb2c16ded5bfefed3a505a73dbaca6e7e60.tar.gz hdf5-20bfdeb2c16ded5bfefed3a505a73dbaca6e7e60.tar.bz2 |
[svn-r29361] Purpose: Correction
Description:
Replaced static_cast with reinterpret_cast for "void *".
Removed some commented-out old code.
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
Diffstat (limited to 'c++/src')
-rw-r--r-- | c++/src/H5Location.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5Location.cpp b/c++/src/H5Location.cpp index 337aa6f..e2b68ae 100644 --- a/c++/src/H5Location.cpp +++ b/c++/src/H5Location.cpp @@ -50,7 +50,7 @@ extern "C" herr_t userAttrOpWrpr(hid_t loc_id, const char *attr_name, #ifdef NO_STATIC_CAST UserData4Aiterate* myData = (UserData4Aiterate *) op_data; #else - UserData4Aiterate* myData = static_cast <UserData4Aiterate *> (op_data); + UserData4Aiterate* myData = reinterpret_cast<UserData4Aiterate *> (op_data); #endif myData->op( *myData->location, s_attr_name, myData->opData ); return 0; @@ -232,7 +232,7 @@ int H5Location::iterateAttrs( attr_operator_t user_op, unsigned *_idx, void *op_ // call the C library routine H5Aiterate2 to iterate the attributes hsize_t idx = _idx ? (hsize_t)*_idx : 0; int ret_value = H5Aiterate2(getId(), H5_INDEX_NAME, H5_ITER_INC, &idx, - userAttrOpWrpr, static_cast<void *>(userData)); + userAttrOpWrpr, reinterpret_cast<void *>(userData)); // release memory delete userData; |