summaryrefslogtreecommitdiffstats
path: root/c++/src/H5PredType.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2001-12-12 19:29:14 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2001-12-12 19:29:14 (GMT)
commitfd48265a02402e3911dadf4dc6895daa1eb39543 (patch)
tree1a9d16abc3f3a9fbc7c41f7fc39dafea67988e27 /c++/src/H5PredType.cpp
parent47d88766dbee3c631c842639d44c362c2b7b8e44 (diff)
downloadhdf5-fd48265a02402e3911dadf4dc6895daa1eb39543.zip
hdf5-fd48265a02402e3911dadf4dc6895daa1eb39543.tar.gz
hdf5-fd48265a02402e3911dadf4dc6895daa1eb39543.tar.bz2
[svn-r4707]
Purpose: Bug fixing Description: H5IdComponent::operator= shouldn't be virtual because the subclass' operator= have different type for the rhs argument. Removed virtual Platforms tested: SunOS 5.7 (arabica) IRIX64 (modi4) - only tested that the warnings went away, still working on other configuration problems.
Diffstat (limited to 'c++/src/H5PredType.cpp')
-rw-r--r--c++/src/H5PredType.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/c++/src/H5PredType.cpp b/c++/src/H5PredType.cpp
index d883ba5..885412c 100644
--- a/c++/src/H5PredType.cpp
+++ b/c++/src/H5PredType.cpp
@@ -29,9 +29,10 @@ PredType::PredType( const PredType& original ) : AtomType( original ) {}
// Makes a copy of the predefined type and stores the new
// id in the left hand side object.
-DataType& PredType::operator=( const PredType& rhs )
+PredType& PredType::operator=( const PredType& rhs )
{
- return(DataType::operator=(rhs));
+ copy(rhs);
+ return(*this);
}
const PredType PredType::NotAtexit; // only for atexit/global dest. problem