summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-06-06 04:00:30 (GMT)
committerGitHub <noreply@github.com>2021-06-06 04:00:30 (GMT)
commit9ebe55b34c4d45db6b47d6cd0ee01efa20d0c31d (patch)
tree6118f81a9d74ebdddaa223b83dfcc1d13d934359
parentce5f1ff1c502a1f341560254e4ed3b0dc65cfade (diff)
downloadhdf5-9ebe55b34c4d45db6b47d6cd0ee01efa20d0c31d.zip
hdf5-9ebe55b34c4d45db6b47d6cd0ee01efa20d0c31d.tar.gz
hdf5-9ebe55b34c4d45db6b47d6cd0ee01efa20d0c31d.tar.bz2
Moves H5PacketTable default ctor inside source file (#731)
-rw-r--r--config/commence.am2
-rw-r--r--hl/c++/src/H5PacketTable.cpp7
-rw-r--r--hl/c++/src/H5PacketTable.h6
3 files changed, 10 insertions, 5 deletions
diff --git a/config/commence.am b/config/commence.am
index 96c2fc2..3fddc6a 100644
--- a/config/commence.am
+++ b/config/commence.am
@@ -45,7 +45,7 @@ LIBH5CPP_HL=$(top_builddir)/hl/c++/src/libhdf5_hl_cpp.la
docdir = $(exec_prefix)/doc
# Note that in svn revision 19400 the '/' after DESTDIR in H5* variables below
-# has been removed. According to the official description of DESTDIR by Gnu at
+# has been removed. According to the official description of DESTDIR by GNU at
# http://www.gnu.org/prep/standards/html_node/DESTDIR.html, DESTDIR is
# prepended to the normal and complete install path that it precedes for the
# purpose of installing in a temporary directory which is useful for building
diff --git a/hl/c++/src/H5PacketTable.cpp b/hl/c++/src/H5PacketTable.cpp
index 3fcc9b2..2908626 100644
--- a/hl/c++/src/H5PacketTable.cpp
+++ b/hl/c++/src/H5PacketTable.cpp
@@ -28,6 +28,13 @@
/* PacketTable superclass */
/********************************/
+/* Null constructor
+ * Sets table_id to "invalid"
+ */
+PacketTable::PacketTable() : table_id{H5I_INVALID_HID}
+{
+}
+
/* "Open" Constructor
* Opens an existing packet table, which can contain either fixed-length or
* variable-length packets.
diff --git a/hl/c++/src/H5PacketTable.h b/hl/c++/src/H5PacketTable.h
index 306cc2f..eae66f1 100644
--- a/hl/c++/src/H5PacketTable.h
+++ b/hl/c++/src/H5PacketTable.h
@@ -31,11 +31,9 @@
class H5_HLCPPDLL PacketTable {
public:
/* Null constructor
- * Sets table_id to "invalid"
+ * Sets table_id to H5I_INVALID_HID
*/
- PacketTable() : table_id{H5I_INVALID_HID}
- {
- }
+ PacketTable();
/* "Open" Constructor
* Opens an existing packet table, which can contain either fixed-length or