summaryrefslogtreecommitdiffstats
path: root/c++/src/H5ArrayType.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 18:58:08 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 18:58:08 (GMT)
commit58803d08320c0f704bc4cca600e9701572ddc1b4 (patch)
tree54f45208d66d18442fd5c588e4a676b3a203a072 /c++/src/H5ArrayType.cpp
parent38687f3498d0878c1c28cb52b8b9e070fcb45da8 (diff)
downloadhdf5-58803d08320c0f704bc4cca600e9701572ddc1b4.zip
hdf5-58803d08320c0f704bc4cca600e9701572ddc1b4.tar.gz
hdf5-58803d08320c0f704bc4cca600e9701572ddc1b4.tar.bz2
[svn-r29765] Purpose: Code cleanup
Description: - Removed many warnings: warning: use of old-style cast warning: enumeration value ‘H5D_VIRTUAL’ not handled in switch warning: comparison between signed and unsigned There are others of the same warnings and they will be taken care of in the next release. - Made some code reuse between overloads Merged from trunk r29340. Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5ArrayType.cpp')
-rw-r--r--c++/src/H5ArrayType.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/c++/src/H5ArrayType.cpp b/c++/src/H5ArrayType.cpp
index 5792467..9731a13 100644
--- a/c++/src/H5ArrayType.cpp
+++ b/c++/src/H5ArrayType.cpp
@@ -54,11 +54,8 @@ ArrayType::ArrayType( const hid_t existing_id ) : DataType( existing_id )
///\brief Copy constructor: makes a copy of the original ArrayType object.
// Programmer Binh-Minh Ribler - May 2004
//--------------------------------------------------------------------------
-ArrayType::ArrayType( const ArrayType& original ) : DataType( original )
+ArrayType::ArrayType( const ArrayType& original ) : DataType( original ), rank(original.rank)
{
- // Copy the rank of the original array
- rank = original.rank;
-
// Allocate space then copy the dimensions from the original array
dimensions = new hsize_t[rank];
for (int i = 0; i < rank; i++)