diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-12-14 03:34:57 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-12-14 03:34:57 (GMT) |
commit | 7e494907c88efd18aa9756fdf27ebcccf4906bbc (patch) | |
tree | 54d04a458f55a01bb0f016688c447178cde60493 /c++/src/H5PropList.h | |
parent | 791d110501f057055b14c503b7a60282d2059dd1 (diff) | |
download | hdf5-7e494907c88efd18aa9756fdf27ebcccf4906bbc.zip hdf5-7e494907c88efd18aa9756fdf27ebcccf4906bbc.tar.gz hdf5-7e494907c88efd18aa9756fdf27ebcccf4906bbc.tar.bz2 |
[svn-r4724]
Purpose:
Eliminated warnings
Description:
1. H5CommonFG.cpp:
On IRIX and Windows 98, if a function, that is declared to
return a value, throws an exception in "else" statement, the
compiler still complains that the function doesn't return a value.
2. Others:
H5IdComponent::operator= shouldn't be virtual because the subclass'
operator= have different type for the rhs argument.
Solution:
1.
Replaced:
if (something valid)
return a value
else
throw an exception
with:
if (something invalid)
throw an exception
return a value
2. Removed 'virtual'
Platforms tested:
FreeBSD 4.4 (hawkwind)
SunOS 5.7 (arabica)
Linux 6.2 (eirene)
Diffstat (limited to 'c++/src/H5PropList.h')
-rw-r--r-- | c++/src/H5PropList.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5PropList.h b/c++/src/H5PropList.h index 037b0d8..325f7f5 100644 --- a/c++/src/H5PropList.h +++ b/c++/src/H5PropList.h @@ -25,7 +25,7 @@ class PropList : public IdComponent { void copy( const PropList& like_plist ); // Make a copy of the given property list using assignment statement - virtual PropList& operator=( const PropList& rhs ); + PropList& operator=( const PropList& rhs ); // Gets the class of this property list, i.e. H5P_FILE_CREATE, // H5P_FILE_ACCESS, ... |