summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
Diffstat (limited to 'c++')
-rw-r--r--c++/examples/h5group.cpp2
-rw-r--r--c++/src/H5CommonFG.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/c++/examples/h5group.cpp b/c++/examples/h5group.cpp
index c3415b6..f7dc733 100644
--- a/c++/examples/h5group.cpp
+++ b/c++/examples/h5group.cpp
@@ -234,7 +234,7 @@ file_info(hid_t loc_id, const char *name, void *opdata)
/*
* Open the group using its name.
*/
- group = H5Gopen(loc_id, name);
+ group = H5Gopen2(loc_id, name, H5P_DEFAULT);
/*
* Display group name.
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp
index ee4303c..2b20541 100644
--- a/c++/src/H5CommonFG.cpp
+++ b/c++/src/H5CommonFG.cpp
@@ -119,14 +119,14 @@ Group CommonFG::createGroup( const H5std_string& name, size_t size_hint ) const
//--------------------------------------------------------------------------
Group CommonFG::openGroup( const char* name ) const
{
- // Call C routine H5Gopen to open the named group, giving the
+ // Call C routine H5Gopen2 to open the named group, giving the
// location id which can be a file id or a group id
- hid_t group_id = H5Gopen( getLocId(), name );
+ hid_t group_id = H5Gopen2( getLocId(), name, H5P_DEFAULT );
// If the opening of the group failed, throw an exception
if( group_id < 0 )
{
- throwException("openGroup", "H5Gopen failed");
+ throwException("openGroup", "H5Gopen2 failed");
}
// No failure, create and return the Group object