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/H5Object.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/H5Object.h')
-rw-r--r-- | c++/src/H5Object.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/src/H5Object.h b/c++/src/H5Object.h index 868f63f..bc2f14a 100644 --- a/c++/src/H5Object.h +++ b/c++/src/H5Object.h @@ -106,7 +106,7 @@ class H5_DLLCPP H5Object : public H5Location { void removeAttr(const H5std_string &name) const; // Returns an identifier. - virtual hid_t getId() const = 0; + virtual hid_t getId() const H5_OVERRIDE = 0; // Gets the name of this HDF5 object, i.e., Group, DataSet, or // DataType. @@ -122,10 +122,10 @@ class H5_DLLCPP H5Object : public H5Location { // Sets the identifier of this object to a new value. - this one // doesn't increment reference count - virtual void p_setId(const hid_t new_id) = 0; + virtual void p_setId(const hid_t new_id) H5_OVERRIDE = 0; // Noop destructor. - virtual ~H5Object(); + virtual ~H5Object() H5_OVERRIDE; #endif // DOXYGEN_SHOULD_SKIP_THIS |