Skip to content

Commit fba7a84

Browse files
committed
Fixing merged code
1 parent d1ce949 commit fba7a84

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

srcCxx/shape_main.cxx

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,32 +1702,34 @@ class ShapeApplication {
17021702
logger.log_message(" ContentFilterTopic = \"" + std::string(filter_expr) + "\"", Verbosity::DEBUG);
17031703
} else if (options->color != NULL) {
17041704
#if defined(RTI_CONNEXT_DDS)
1705-
char parameter[64];
1706-
snprintf(parameter, 64, "'%s'", options->color);
1707-
StringSeq_push(cf_params, parameter);
1705+
char parameter[64];
1706+
snprintf(parameter, 64, "'%s'", options->color);
1707+
StringSeq_push(cf_params, parameter);
17081708

1709-
cft = dp->create_contentfilteredtopic(filtered_topic_name, topics[i], "color MATCH %0", cf_params);
1710-
logger.log_message(" ContentFilterTopic = \"color MATCH "
1711-
+ std::string(parameter) + std::string("\""), Verbosity::DEBUG);
1709+
cft = dp->create_contentfilteredtopic(filtered_topic_name, topics[i], "color MATCH %0", cf_params);
1710+
logger.log_message(" ContentFilterTopic = \"color MATCH "
1711+
+ std::string(parameter) + std::string("\""), Verbosity::DEBUG);
17121712
#elif defined(INTERCOM_DDS)
1713-
char parameter[64];
1714-
snprintf(parameter, 64, "'%s'", options->color);
1715-
StringSeq_push(cf_params, parameter);
1713+
char parameter[64];
1714+
snprintf(parameter, 64, "'%s'", options->color);
1715+
StringSeq_push(cf_params, parameter);
17161716

1717-
cft = dp->create_contentfilteredtopic(filtered_topic_name, topics[i], "color = %0", cf_params);
1718-
logger.log_message(" ContentFilterTopic = \"color = "
1719-
+ std::string(parameter) + std::string("\""), Verbosity::DEBUG);
1717+
cft = dp->create_contentfilteredtopic(filtered_topic_name, topics[i], "color = %0", cf_params);
1718+
logger.log_message(" ContentFilterTopic = \"color = "
1719+
+ std::string(parameter) + std::string("\""), Verbosity::DEBUG);
17201720
#elif defined(TWINOAKS_COREDX) || defined(OPENDDS)
1721-
StringSeq_push(cf_params, options->color);
1722-
cft = dp->create_contentfilteredtopic(filtered_topic_name, topics[i], "color = %0", cf_params);
1723-
logger.log_message(" ContentFilterTopic = \"color = "
1724-
+ std::string(options->color) + std::string("\""), Verbosity::DEBUG);
1721+
StringSeq_push(cf_params, options->color);
1722+
cft = dp->create_contentfilteredtopic(filtered_topic_name, topics[i], "color = %0", cf_params);
1723+
logger.log_message(" ContentFilterTopic = \"color = "
1724+
+ std::string(options->color) + std::string("\""), Verbosity::DEBUG);
17251725
#elif defined(EPROSIMA_FAST_DDS)
1726-
cf_params.push_back(std::string("'") + options->color + std::string("'"));
1727-
cft = dp->create_contentfilteredtopic(filtered_topic_name, topics[i], "color = %0", cf_params);
1728-
logger.log_message(" ContentFilterTopic = \"color = "
1729-
+ cf_params[0] + std::string("\""), Verbosity::DEBUG);
1726+
cf_params.push_back(std::string("'") + options->color + std::string("'"));
1727+
cft = dp->create_contentfilteredtopic(filtered_topic_name, topics[i], "color = %0", cf_params);
1728+
logger.log_message(" ContentFilterTopic = \"color = "
1729+
+ cf_params[0] + std::string("\""), Verbosity::DEBUG);
17301730
#endif
1731+
}
1732+
17311733
if (cft == NULL) {
17321734
logger.log_message("failed to create content filtered topic", Verbosity::ERROR);
17331735
return false;
@@ -1742,7 +1744,6 @@ class ShapeApplication {
17421744
}
17431745
#endif
17441746

1745-
17461747
} else {
17471748
// Create different DataReaders (depending on the number of entities)
17481749
// The DRs are attached to the same array index of the topics.

0 commit comments

Comments
 (0)