summaryrefslogtreecommitdiffstats
path: root/c++/src/H5File.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2004-07-08 19:48:45 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2004-07-08 19:48:45 (GMT)
commitc3bfac06392131adaec4744d50274e75638f76b6 (patch)
tree3eff702dce697ffada3971d54ec94294a11a1543 /c++/src/H5File.cpp
parentc19e495c00193859a9cb3d0d25b52e6d9b379784 (diff)
downloadhdf5-c3bfac06392131adaec4744d50274e75638f76b6.zip
hdf5-c3bfac06392131adaec4744d50274e75638f76b6.tar.gz
hdf5-c3bfac06392131adaec4744d50274e75638f76b6.tar.bz2
[svn-r8837] Purpose: Update doc and fix minor bug
Description: H5IdComponent.cpp: initialized a pointer to NULL H5Object.cpp: removed functions being added by mistake Update function headers for the rest. Platforms tested: SunOS 5.7 (arabica) Linux 2.4 (eirene)
Diffstat (limited to 'c++/src/H5File.cpp')
-rw-r--r--c++/src/H5File.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp
index a39d93f..aca787a 100644
--- a/c++/src/H5File.cpp
+++ b/c++/src/H5File.cpp
@@ -484,22 +484,22 @@ hid_t H5File::getLocId() const
//--------------------------------------------------------------------------
// Function: H5File::getFileSize
-///\brief Retrieves the file size of the HDF5 file. This function
-/// is called after an existing file is opened in order
-/// to learn the true size of the underlying file.
+///\brief Retrieves the file size of the HDF5 file.
///\exception H5::FileIException
+///\return File size
+///\par Description
+/// This function is called after an existing file is opened in
+/// order to learn the true size of the underlying file.
// Programmer Raymond Lu - June 24, 2004
//--------------------------------------------------------------------------
haddr_t H5File::getFileSize(void) const
{
- herr_t ret;
-
- ret = H5Fget_filesize(id, size);
- if( ret < 0 )
+ haddr_t file_size = H5Fget_filesize(id);
+ if( file_size < 0 )
{
throw FileIException("H5File::getFileSize", "H5Fget_filesize failed");
}
- return ret;
+ return(file_size);
}
//--------------------------------------------------------------------------