Skip to content

Commit

Permalink
Removed this-> qualifier
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Jul 22, 2021
1 parent f92e78f commit cbca746
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,27 @@ MessageTypeSupport<MembersType>::MessageTypeSupport(
: TypeSupport<MembersType>(ros_type_support)
{
assert(members);
this->members_ = members;
members_ = members;

std::ostringstream ss;
std::string message_namespace(this->members_->message_namespace_);
std::string message_name(this->members_->message_name_);
std::string message_namespace(members_->message_namespace_);
std::string message_name(members_->message_name_);
if (!message_namespace.empty()) {
// Find and replace C namespace separator with C++, in case this is using C typesupport
message_namespace = rcpputils::find_and_replace(message_namespace, "__", "::");
ss << message_namespace << "::";
}
ss << "dds_::" << message_name << "_";
this->setName(ss.str().c_str());
setName(ss.str().c_str());

// Fully bound by default
this->max_size_bound_ = true;
max_size_bound_ = true;
// Encapsulation size
this->m_typeSize = 4;
if (this->members_->member_count_ != 0) {
this->m_typeSize += static_cast<uint32_t>(this->calculateMaxSerializedSize(members, 0));
m_typeSize = 4;
if (members_->member_count_ != 0) {
m_typeSize += static_cast<uint32_t>(calculateMaxSerializedSize(members, 0));
} else {
this->m_typeSize++;
m_typeSize++;
}
m_typeSize = (m_typeSize + 3) & ~3;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RequestTypeSupport<ServiceMembersType, MessageMembersType>::RequestTypeSupport(
: TypeSupport<MessageMembersType>(ros_type_support)
{
assert(members);
this->members_ = members->request_members_;
members_ = members->request_members_;

std::ostringstream ss;
std::string service_namespace(members->service_namespace_);
Expand All @@ -47,16 +47,16 @@ RequestTypeSupport<ServiceMembersType, MessageMembersType>::RequestTypeSupport(
ss << service_namespace << "::";
}
ss << "dds_::" << service_name << "_Request_";
this->setName(ss.str().c_str());
setName(ss.str().c_str());

// Fully bound by default
this->max_size_bound_ = true;
max_size_bound_ = true;
// Encapsulation size
this->m_typeSize = 4;
if (this->members_->member_count_ != 0) {
this->m_typeSize += static_cast<uint32_t>(this->calculateMaxSerializedSize(this->members_, 0));
m_typeSize = 4;
if (members_->member_count_ != 0) {
m_typeSize += static_cast<uint32_t>(calculateMaxSerializedSize(members_, 0));
} else {
this->m_typeSize++;
m_typeSize++;
}
m_typeSize = (m_typeSize + 3) & ~3;
}
Expand All @@ -67,7 +67,7 @@ ResponseTypeSupport<ServiceMembersType, MessageMembersType>::ResponseTypeSupport
: TypeSupport<MessageMembersType>(ros_type_support)
{
assert(members);
this->members_ = members->response_members_;
members_ = members->response_members_;

std::ostringstream ss;
std::string service_namespace(members->service_namespace_);
Expand All @@ -78,16 +78,16 @@ ResponseTypeSupport<ServiceMembersType, MessageMembersType>::ResponseTypeSupport
ss << service_namespace << "::";
}
ss << "dds_::" << service_name << "_Response_";
this->setName(ss.str().c_str());
setName(ss.str().c_str());

// Fully bound by default
this->max_size_bound_ = true;
max_size_bound_ = true;
// Encapsulation size
this->m_typeSize = 4;
if (this->members_->member_count_ != 0) {
this->m_typeSize += static_cast<uint32_t>(this->calculateMaxSerializedSize(this->members_, 0));
m_typeSize = 4;
if (members_->member_count_ != 0) {
m_typeSize += static_cast<uint32_t>(calculateMaxSerializedSize(members_, 0));
} else {
this->m_typeSize++;
m_typeSize++;
}
m_typeSize = (m_typeSize + 3) & ~3;
}
Expand Down

0 comments on commit cbca746

Please sign in to comment.