summaryrefslogtreecommitdiffstats
path: root/c++/src/H5File.cpp
diff options
context:
space:
mode:
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);
}
//--------------------------------------------------------------------------