summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2017-08-24 18:46:39 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2017-08-24 18:46:39 (GMT)
commit0e44181bbb9797bdf4c7b2c192a457639a4e5ea1 (patch)
tree0a2a276797b42ed90291f69de87f8b65b9578bf2 /c++/src/H5CommonFG.cpp
parenta6d5bf1a86250cc660cd1ed420eeda6940792be5 (diff)
downloadhdf5-0e44181bbb9797bdf4c7b2c192a457639a4e5ea1.zip
hdf5-0e44181bbb9797bdf4c7b2c192a457639a4e5ea1.tar.gz
hdf5-0e44181bbb9797bdf4c7b2c192a457639a4e5ea1.tar.bz2
Miscellaneous improvements
Description: Moved H5Location::getNumObjs to Group::getNumObjs (i.e., H5Gget_info) Switched reinterpret_cast to static_cast in H5Object::iterateAttrs Miscellaneous cleanup Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5CommonFG.cpp')
-rw-r--r--c++/src/H5CommonFG.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp
index c9c203a..af5ba0e 100644
--- a/c++/src/H5CommonFG.cpp
+++ b/c++/src/H5CommonFG.cpp
@@ -13,8 +13,8 @@
#include <string>
-#include "H5Include.h"
#include "H5private.h" // for HDstrcpy
+#include "H5Include.h"
#include "H5Exception.h"
#include "H5IdComponent.h"
#include "H5DataSpace.h"
@@ -64,7 +64,8 @@ DataType CommonFG::openDataType(const char* name) const
throwException("openDataType", "H5Topen2 failed");
// No failure, create and return the DataType object
- DataType data_type(type_id);
+ DataType data_type;
+ f_DataType_setId(&data_type, type_id);
return(data_type);
}