Skip to content

Commit

Permalink
Refs #21121: Make get_payload's first arg const
Browse files Browse the repository at this point in the history
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
  • Loading branch information
cferreiragonz committed Jun 11, 2024
1 parent 9d10969 commit 067bce8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/CodeTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void rtps_api_example_create_entities_with_custom_pool()
}

bool get_payload(
SerializedPayload_t& data,
const SerializedPayload_t& data,
SerializedPayload_t& payload)
{
// Reserve new memory for the payload buffer
Expand Down
2 changes: 1 addition & 1 deletion code/DDSCodeTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class CustomPayloadPool : public eprosima::fastrtps::rtps::IPayloadPool
}

bool get_payload(
eprosima::fastrtps::rtps::SerializedPayload_t& data,
const eprosima::fastrtps::rtps::SerializedPayload_t& data,
eprosima::fastrtps::rtps::SerializedPayload_t& payload)
{
return true;
Expand Down

0 comments on commit 067bce8

Please sign in to comment.