Skip to content

Commit

Permalink
Apply more suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: tempate <[email protected]>
  • Loading branch information
Tempate committed Nov 3, 2023
1 parent 6005fdf commit 02a567b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class CommonReader : public BaseReader, public fastdds::dds::DataReaderListener
fastdds::dds::DataReaderQos
reckon_reader_qos_() const;

//! Whether a change received should be processed
//! Whether a sample received should be processed
virtual bool should_accept_sample_(
const fastdds::dds::SampleInfo& info) noexcept;

Expand Down
20 changes: 2 additions & 18 deletions ddspipe_yaml/src/cpp/YamlReader_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ YamlReaderVersion YamlReader::get<YamlReaderVersion>(
return get_enumeration<YamlReaderVersion>(
yml,
{
{VERSION_TAG_V_1_0, YamlReaderVersion::V_1_0},
{VERSION_TAG_V_2_0, YamlReaderVersion::V_2_0},
{VERSION_TAG_V_3_0, YamlReaderVersion::V_3_0},
{VERSION_TAG_V_3_1, YamlReaderVersion::V_3_1},
{VERSION_TAG_V_4_0, YamlReaderVersion::V_4_0},
});
}
Expand Down Expand Up @@ -642,21 +638,9 @@ std::ostream& operator <<(
{
switch (version)
{
case V_1_0:
os << VERSION_TAG_V_1_0;
break;

case V_2_0:
os << VERSION_TAG_V_2_0;
break;

case V_3_0:
os << VERSION_TAG_V_3_0;
break;

case V_3_1:
case V_4_0:
case LATEST:
os << VERSION_TAG_V_3_1;
os << VERSION_TAG_V_4_0;
break;

default:
Expand Down

0 comments on commit 02a567b

Please sign in to comment.