summaryrefslogtreecommitdiffstats
path: root/c++/test/trefer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/test/trefer.cpp')
-rw-r--r--c++/test/trefer.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/c++/test/trefer.cpp b/c++/test/trefer.cpp
index 9ef6240..19a8a6b 100644
--- a/c++/test/trefer.cpp
+++ b/c++/test/trefer.cpp
@@ -12,13 +12,12 @@
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-/***********************************************************
-*
-* Test program: trefer
-*
-* Test the Reference functionality
-*
-*************************************************************/
+/*****************************************************************************
+ FILE
+ trefer.cpp - HDF5 C++ testing the functionalities associated with the C
+ Reference interface (H5R)
+
+ ***************************************************************************/
#ifdef OLD_HEADER_FILENAME
#include <iostream.h>
@@ -38,7 +37,7 @@
#include "H5Cpp.h" // C++ API header file
#ifndef H5_NO_NAMESPACE
-using namespace H5;
+ using namespace H5;
#endif
#include "h5cpputil.h" // C++ utilility header file
@@ -230,7 +229,7 @@ test_reference_obj(void)
// Dereference group object by ctor and using dataset to specify
// location
Group new_group(dataset, &rbuf[2]);
- H5std_string read_comment3 = group.getComment(".", 10);
+ H5std_string read_comment3 = new_group.getComment(".", 10);
verify_val(read_comment3, write_comment, "Group::getComment", __LINE__, __FILE__);
group.close();