Skip to content

Commit

Permalink
Refs #22284. Fix issue.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Nov 26, 2024
1 parent 86681d7 commit b8a15f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions include/fastcdr/Cdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,6 @@ class Cdr
Cdr& serialize(
const std::string& string_t)
{
// An empty string is serialized as a 0 length string.
if (string_t.empty())
{
return serialize(static_cast<uint32_t>(0));
}

// Check there are no null characters in the string.
const char* c_str = string_t.c_str();
const auto str_len = strlen(c_str);
Expand Down
6 changes: 0 additions & 6 deletions include/fastcdr/FastCdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -891,12 +891,6 @@ class Cdr_DllAPI FastCdr
FastCdr& serialize(
const std::string& string_t)
{
// An empty string is serialized as a 0 length string.
if (string_t.empty())
{
return serialize(static_cast<uint32_t>(0));
}

// Check there are no null characters in the string.
const char* c_str = string_t.c_str();
const auto str_len = strlen(c_str);
Expand Down

0 comments on commit b8a15f5

Please sign in to comment.