Skip to content

Commit

Permalink
fix: use the default destructor to drop the member Payload (#419)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2930620)
  • Loading branch information
YuanYuYuan authored and mergify[bot] committed Jan 15, 2025
1 parent c648ba4 commit 7356c1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ SubscriptionData::Message::Message(
{
}

///=============================================================================
SubscriptionData::Message::~Message()
{
}

///=============================================================================
std::shared_ptr<SubscriptionData> SubscriptionData::make(
std::shared_ptr<zenoh::Session> session,
Expand Down
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/rmw_subscription_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SubscriptionData final : public std::enable_shared_from_this<SubscriptionD
uint64_t recv_ts,
AttachmentData && attachment);

~Message();
~Message() = default;

Payload payload;
uint64_t recv_timestamp;
Expand Down

0 comments on commit 7356c1c

Please sign in to comment.