diff options
author | Sean McBride <sean@rogue-research.com> | 2021-03-10 17:52:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 17:52:48 (GMT) |
commit | 7501f96ab9605e11c58bc0c9e6412e4db30ba7db (patch) | |
tree | 6da037eb150a567127e6422367452386c3d835c1 /c++/src/H5File.h | |
parent | 20c452fe5c0955a81ae1222d846632f1525f08f4 (diff) | |
download | hdf5-7501f96ab9605e11c58bc0c9e6412e4db30ba7db.zip hdf5-7501f96ab9605e11c58bc0c9e6412e4db30ba7db.tar.gz hdf5-7501f96ab9605e11c58bc0c9e6412e4db30ba7db.tar.bz2 |
Added C++11 override keyword where appropriate (#433)
Added H5_OVERRIDE macro for compatibility with both C++11 and older.
Diffstat (limited to 'c++/src/H5File.h')
-rw-r--r-- | c++/src/H5File.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c++/src/H5File.h b/c++/src/H5File.h index d287031..6126eec 100644 --- a/c++/src/H5File.h +++ b/c++/src/H5File.h @@ -39,7 +39,7 @@ class H5_DLLCPP H5File : public Group { const FileAccPropList &access_plist = FileAccPropList::DEFAULT); // Close this file. - virtual void close(); + virtual void close() H5_OVERRIDE; // Gets a copy of the access property list of this file. FileAccPropList getAccessPlist() const; @@ -96,16 +96,16 @@ class H5_DLLCPP H5File : public Group { ///\brief Returns this class name. virtual H5std_string - fromClass() const + fromClass() const H5_OVERRIDE { return ("H5File"); } // Throw file exception. - virtual void throwException(const H5std_string &func_name, const H5std_string &msg) const; + virtual void throwException(const H5std_string &func_name, const H5std_string &msg) const H5_OVERRIDE; // For CommonFG to get the file id. - virtual hid_t getLocId() const; + virtual hid_t getLocId() const H5_OVERRIDE; // Default constructor H5File(); @@ -114,7 +114,7 @@ class H5_DLLCPP H5File : public Group { H5File(const H5File &original); // Gets the HDF5 file id. - virtual hid_t getId() const; + virtual hid_t getId() const H5_OVERRIDE; // H5File destructor. virtual ~H5File(); @@ -122,7 +122,7 @@ class H5_DLLCPP H5File : public Group { protected: #ifndef DOXYGEN_SHOULD_SKIP_THIS // Sets the HDF5 file id. - virtual void p_setId(const hid_t new_id); + virtual void p_setId(const hid_t new_id) H5_OVERRIDE; #endif // DOXYGEN_SHOULD_SKIP_THIS private: |