Skip to content

Commit

Permalink
Moves H5PacketTable default ctor inside source file (HDFGroup#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins committed Jun 7, 2021
1 parent 10cc908 commit d31de17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/commence.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions hl/c++/src/H5PacketTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 2 additions & 4 deletions hl/c++/src/H5PacketTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d31de17

Please sign in to comment.