Correct the coding style to pass CI test.

Signed-off-by: evshary <evshary@gmail.com>
This commit is contained in:
evshary 2020-02-12 13:47:37 +08:00 committed by eboasson
parent d2a22d3f59
commit 275d3dd42a
2 changed files with 8 additions and 6 deletions

View file

@ -2748,7 +2748,8 @@ static bool demangle_topic_type(
std::string & demangled_type_name)
{
bool is_def_kind = topic_kind == topic_kind::DEFAULT;
const auto re_typ = std::regex("^(.*::)dds_::(.*)_" +
const auto re_typ = std::regex(
"^(.*::)dds_::(.*)_" +
(is_def_kind ? std::string() : std::string("(Response|Request)_")) +
std::string("$"),
std::regex::extended);

View file

@ -453,7 +453,8 @@ bool sertopic_rmw_equal(
if (a->is_request_header != b->is_request_header) {
return false;
}
if (strcmp(a->type_support.typesupport_identifier_,
if (strcmp(
a->type_support.typesupport_identifier_,
b->type_support.typesupport_identifier_) != 0)
{
return false;