From 275d3dd42ab9da3bb8c8b7c5a6f7bcf3ba973b65 Mon Sep 17 00:00:00 2001 From: evshary Date: Wed, 12 Feb 2020 13:47:37 +0800 Subject: [PATCH] Correct the coding style to pass CI test. Signed-off-by: evshary --- rmw_cyclonedds_cpp/src/rmw_node.cpp | 9 +++++---- rmw_cyclonedds_cpp/src/serdata.cpp | 5 +++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/rmw_cyclonedds_cpp/src/rmw_node.cpp b/rmw_cyclonedds_cpp/src/rmw_node.cpp index 7313941..2f5f030 100644 --- a/rmw_cyclonedds_cpp/src/rmw_node.cpp +++ b/rmw_cyclonedds_cpp/src/rmw_node.cpp @@ -2748,10 +2748,11 @@ 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_::(.*)_" + - (is_def_kind ? std::string() : std::string("(Response|Request)_")) + - std::string("$"), - std::regex::extended); + const auto re_typ = std::regex( + "^(.*::)dds_::(.*)_" + + (is_def_kind ? std::string() : std::string("(Response|Request)_")) + + std::string("$"), + std::regex::extended); std::cmatch cm_typ; if (std::regex_search(type_name, cm_typ, re_typ)) { demangled_type_name = diff --git a/rmw_cyclonedds_cpp/src/serdata.cpp b/rmw_cyclonedds_cpp/src/serdata.cpp index 606a967..db3f783 100644 --- a/rmw_cyclonedds_cpp/src/serdata.cpp +++ b/rmw_cyclonedds_cpp/src/serdata.cpp @@ -453,8 +453,9 @@ bool sertopic_rmw_equal( if (a->is_request_header != b->is_request_header) { return false; } - if (strcmp(a->type_support.typesupport_identifier_, - b->type_support.typesupport_identifier_) != 0) + if (strcmp( + a->type_support.typesupport_identifier_, + b->type_support.typesupport_identifier_) != 0) { return false; }