summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
Diffstat (limited to 'hl')
-rw-r--r--hl/c++/src/H5PacketTable.cpp8
-rw-r--r--hl/c++/src/H5PacketTable.h7
2 files changed, 10 insertions, 5 deletions
diff --git a/hl/c++/src/H5PacketTable.cpp b/hl/c++/src/H5PacketTable.cpp
index 0f47b0d..5f41e26 100644
--- a/hl/c++/src/H5PacketTable.cpp
+++ b/hl/c++/src/H5PacketTable.cpp
@@ -28,6 +28,14 @@
/* 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 acd0ccf..eae66f1 100644
--- a/hl/c++/src/H5PacketTable.h
+++ b/hl/c++/src/H5PacketTable.h
@@ -31,12 +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