summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataSpace.h
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-03-10 17:52:48 (GMT)
committerGitHub <noreply@github.com>2021-03-10 17:52:48 (GMT)
commit7501f96ab9605e11c58bc0c9e6412e4db30ba7db (patch)
tree6da037eb150a567127e6422367452386c3d835c1 /c++/src/H5DataSpace.h
parent20c452fe5c0955a81ae1222d846632f1525f08f4 (diff)
downloadhdf5-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/H5DataSpace.h')
-rw-r--r--c++/src/H5DataSpace.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/c++/src/H5DataSpace.h b/c++/src/H5DataSpace.h
index f16acfc..470de74 100644
--- a/c++/src/H5DataSpace.h
+++ b/c++/src/H5DataSpace.h
@@ -43,7 +43,7 @@ class H5_DLLCPP DataSpace : public IdComponent {
DataSpace &operator=(const DataSpace &rhs);
// Closes this dataspace.
- virtual void close();
+ virtual void close() H5_OVERRIDE;
// Makes copy of an existing dataspace.
void copy(const DataSpace &like_space);
@@ -115,13 +115,13 @@ class H5_DLLCPP DataSpace : public IdComponent {
///\brief Returns this class name.
virtual H5std_string
- fromClass() const
+ fromClass() const H5_OVERRIDE
{
return ("DataSpace");
}
// Gets the dataspace id.
- virtual hid_t getId() const;
+ virtual hid_t getId() const H5_OVERRIDE;
// Deletes the global constant
static void deleteConstants();
@@ -133,7 +133,7 @@ class H5_DLLCPP DataSpace : public IdComponent {
protected:
// Sets the dataspace 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