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,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 =