Skip to content

Commit

Permalink
Refs #21077: Revision - Clear method
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed Jun 19, 2024
1 parent c38a7a9 commit 88ee299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions include/fastdds/dds/publisher/qos/DataWriterQos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class RTPSReliableWriterQos

inline void clear()
{
RTPSReliableWriterQos reset = RTPSReliableWriterQos();
std::swap(*this, reset);
*this = RTPSReliableWriterQos();
}

//!Writer Timing Attributes
Expand Down
3 changes: 1 addition & 2 deletions include/fastdds/dds/subscriber/qos/DataReaderQos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class RTPSReliableReaderQos

inline void clear()
{
RTPSReliableReaderQos reset = RTPSReliableReaderQos();
std::swap(*this, reset);
*this = RTPSReliableReaderQos();
}

/*!
Expand Down

0 comments on commit 88ee299

Please sign in to comment.