[svn-r29340] Purpose: Code cleanup
Description:
- Removed many warnings:
warning: use of old-style cast
warning: enumeration value ‘H5D_VIRTUAL’ not handled in switch
warning: comparison between signed and unsigned
There are others of the same warnings and they will be taken care of
in the next release.
- Made some code reuse between overloads
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
This commit is contained in:
@@ -109,7 +109,7 @@ H5std_string H5Object::getObjName() const
|
||||
H5std_string obj_name(""); // object name to return
|
||||
|
||||
// Preliminary call to get the size of the object name
|
||||
ssize_t name_size = H5Iget_name(getId(), NULL, (size_t)0);
|
||||
ssize_t name_size = H5Iget_name(getId(), NULL, static_cast<size_t>(0));
|
||||
|
||||
// If H5Iget_name failed, throw exception
|
||||
if (name_size < 0)
|
||||
|
||||
Reference in New Issue
Block a user