Skip to content

Commit

Permalink
const keyword removed from send() in publisher files
Browse files Browse the repository at this point in the history
  • Loading branch information
ashariff-11 committed Jun 24, 2024
1 parent 3274646 commit 2538fa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ecal/core/include/ecal/ecal_publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ namespace eCAL
*
* @return Number of bytes sent.
**/
ECAL_API size_t Send(const void* buf_, size_t len_, long long time_ = DEFAULT_TIME_ARGUMENT) const;
ECAL_API size_t Send(const void* buf_, size_t len_, long long time_ = DEFAULT_TIME_ARGUMENT);

/**
* @brief Send a message to all subscribers.
Expand All @@ -204,7 +204,7 @@ namespace eCAL
*
* @return Number of bytes sent.
**/
ECAL_API size_t Send(CPayloadWriter& payload_, long long time_ = DEFAULT_TIME_ARGUMENT) const;
ECAL_API size_t Send(CPayloadWriter& payload_, long long time_ = DEFAULT_TIME_ARGUMENT);

/**
* @brief Send a message to all subscribers.
Expand All @@ -214,7 +214,7 @@ namespace eCAL
*
* @return Number of bytes sent.
**/
ECAL_API size_t Send(const std::string& s_, long long time_ = DEFAULT_TIME_ARGUMENT) const;
ECAL_API size_t Send(const std::string& s_, long long time_ = DEFAULT_TIME_ARGUMENT);

/**
* @brief Add callback function for publisher events.
Expand Down
6 changes: 3 additions & 3 deletions ecal/core/src/pubsub/ecal_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ namespace eCAL
return(true);
}

size_t CPublisher::Send(const void* const buf_, const size_t len_, const long long time_ /* = DEFAULT_TIME_ARGUMENT */) const
size_t CPublisher::Send(const void* const buf_, const size_t len_, const long long time_ /* = DEFAULT_TIME_ARGUMENT */)
{
CBufferPayloadWriter payload{ buf_, len_ };
return Send(payload, time_);
}

size_t CPublisher::Send(CPayloadWriter& payload_, long long time_) const
size_t CPublisher::Send(CPayloadWriter& payload_, long long time_)
{
if (!m_created) return(0);

Expand All @@ -180,7 +180,7 @@ namespace eCAL
return written_bytes;
}

size_t CPublisher::Send(const std::string& s_, long long time_) const
size_t CPublisher::Send(const std::string& s_, long long time_)
{
return(Send(s_.data(), s_.size(), time_));
}
Expand Down

0 comments on commit 2538fa9

Please sign in to comment.