summaryrefslogtreecommitdiffstats
path: root/c++/test/tvlstr.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2008-07-18 21:05:05 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2008-07-18 21:05:05 (GMT)
commit60957dc6cfa069aa2809732479e004b7813a2054 (patch)
treeb1722219ea39855aefc5d444fd0f31785dc717c8 /c++/test/tvlstr.cpp
parentd6dc8a4dfd95ea0e6b3b6d9cfbb8ea5aad4c19d3 (diff)
downloadhdf5-60957dc6cfa069aa2809732479e004b7813a2054.zip
hdf5-60957dc6cfa069aa2809732479e004b7813a2054.tar.gz
hdf5-60957dc6cfa069aa2809732479e004b7813a2054.tar.bz2
[svn-r15387] Purpose: Fix bug
Description: Enclosed some code that test reference counts in brackets so that temporary objects will go out of scope before checking references. This is to work around the issue where some C++ compilers destroy temporary objects at different time than others. Platforms tested: SunOS 5.10 (linew) Linux 2.6 (kagiso) FreeBSD (duty)
Diffstat (limited to 'c++/test/tvlstr.cpp')
-rw-r--r--c++/test/tvlstr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/test/tvlstr.cpp b/c++/test/tvlstr.cpp
index 469e861..0a11057 100644
--- a/c++/test/tvlstr.cpp
+++ b/c++/test/tvlstr.cpp
@@ -416,7 +416,7 @@ static void test_vlstring_type()
file1 = new H5File(FILENAME, H5F_ACC_RDWR);
// Open the variable-length string datatype just created
- vlstr_type.setId((file1->openStrType(VLSTR_TYPE)).getId());
+ vlstr_type = file1->openStrType(VLSTR_TYPE);
// Verify character set and padding
cset = vlstr_type.getCset();