Skip to content

Commit

Permalink
Refs #21329: Update Impl
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Jul 10, 2024
1 parent c787dcd commit 2d74dec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/cpp/fastdds/publisher/DataWriterImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,29 +634,29 @@ ReturnCode_t DataWriterImpl::discard_loan(
return RETCODE_OK;
}

bool DataWriterImpl::write(
ReturnCode_t DataWriterImpl::write(
const void* const data)
{
if (writer_ == nullptr)
{
return false;
return RETCODE_NOT_ENABLED;
}

EPROSIMA_LOG_INFO(DATA_WRITER, "Writing new data");
return RETCODE_OK == create_new_change(ALIVE, data);
return create_new_change(ALIVE, data);
}

bool DataWriterImpl::write(
ReturnCode_t DataWriterImpl::write(
const void* const data,
fastdds::rtps::WriteParams& params)
{
if (writer_ == nullptr)
{
return false;
return RETCODE_NOT_ENABLED;
}

EPROSIMA_LOG_INFO(DATA_WRITER, "Writing new data with WriteParams");
return RETCODE_OK == create_new_change_with_params(ALIVE, data, params);
return create_new_change_with_params(ALIVE, data, params);
}

ReturnCode_t DataWriterImpl::check_write_preconditions(
Expand Down
8 changes: 4 additions & 4 deletions src/cpp/fastdds/publisher/DataWriterImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ class DataWriterImpl : protected rtps::IReaderDataFilter
*
* @param data Pointer to the data.
*
* @return true if data is correctly delivered to the lower layers, false otherwise.
* @return any of the standard return codes.
*/
bool write(
ReturnCode_t write(
const void* const data);

/**
Expand All @@ -175,9 +175,9 @@ class DataWriterImpl : protected rtps::IReaderDataFilter
* @param data Pointer to the data.
* @param params Extra write parameters.
*
* @return true if data is correctly delivered to the lower layers, false otherwise.
* @return any of the standard return codes.
*/
bool write(
ReturnCode_t write(
const void* const data,
fastdds::rtps::WriteParams& params);

Expand Down

0 comments on commit 2d74dec

Please sign in to comment.