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/H5Group.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/H5Group.h')
-rw-r--r-- | c++/src/H5Group.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/c++/src/H5Group.h b/c++/src/H5Group.h index 6e82e21..b5f7e51 100644 --- a/c++/src/H5Group.h +++ b/c++/src/H5Group.h @@ -24,20 +24,20 @@ namespace H5 { class H5_DLLCPP Group : public H5Object, public CommonFG { public: // Close this group. - virtual void close(); + virtual void close() H5_OVERRIDE; ///\brief Returns this class name. virtual H5std_string - fromClass() const + fromClass() const H5_OVERRIDE { return ("Group"); } // Throw group 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; // Creates a group by way of dereference. Group(const H5Location &loc, const void *ref, H5R_type_t ref_type = H5R_OBJECT, @@ -63,10 +63,10 @@ class H5_DLLCPP Group : public H5Object, public CommonFG { Group(const Group &original); // Gets the group id. - virtual hid_t getId() const; + virtual hid_t getId() const H5_OVERRIDE; // Destructor - virtual ~Group(); + virtual ~Group() H5_OVERRIDE; // Creates a copy of an existing group using its id. Group(const hid_t group_id); @@ -74,7 +74,7 @@ class H5_DLLCPP Group : public H5Object, public CommonFG { protected: #ifndef DOXYGEN_SHOULD_SKIP_THIS // Sets the group 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: |