summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataSpace.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2007-01-26 05:34:10 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2007-01-26 05:34:10 (GMT)
commit134352c456b2952f192e74ed3e87fb72a2d9bbd8 (patch)
treedc0a3bfe64e0a7b3a03d676c19e9f06b888d204e /c++/src/H5DataSpace.cpp
parent73b8819a42503e55c5c82fa478bdc2870b709deb (diff)
downloadhdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.zip
hdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.tar.gz
hdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.tar.bz2
[svn-r13200] Purpose: Adding wrappers and fixing a bug
Description: - Added overloaded function DataType::copy to take a DataSet - Added overloaded DataType::commit - Fixed bugzilla 797 - Fixed a warning in DataSpace::operator= - Set PropList parameter to default in DataType::convert Platforms tested AIX 5.1 (copper) SunOS 5.8 64-bit (sol) HPUX 11.00 (kelgia)
Diffstat (limited to 'c++/src/H5DataSpace.cpp')
-rw-r--r--c++/src/H5DataSpace.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/c++/src/H5DataSpace.cpp b/c++/src/H5DataSpace.cpp
index 42c31ec..69834f6 100644
--- a/c++/src/H5DataSpace.cpp
+++ b/c++/src/H5DataSpace.cpp
@@ -136,10 +136,8 @@ void DataSpace::copy( const DataSpace& like_space )
DataSpace& DataSpace::operator=( const DataSpace& rhs )
{
if (this != &rhs)
- {
- copy(rhs);
- return(*this);
- }
+ copy(rhs);
+ return(*this);
}
//--------------------------------------------------------------------------