From 2538fa929e31d8769a2e03d5f0ebcb9bc94aa44d Mon Sep 17 00:00:00 2001 From: Shariff <166038015+ashariff-11@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:00:04 +0200 Subject: [PATCH] const keyword removed from send() in publisher files --- ecal/core/include/ecal/ecal_publisher.h | 6 +++--- ecal/core/src/pubsub/ecal_publisher.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ecal/core/include/ecal/ecal_publisher.h b/ecal/core/include/ecal/ecal_publisher.h index 08dcaa7bff..c79f134b7a 100644 --- a/ecal/core/include/ecal/ecal_publisher.h +++ b/ecal/core/include/ecal/ecal_publisher.h @@ -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. @@ -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. @@ -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. diff --git a/ecal/core/src/pubsub/ecal_publisher.cpp b/ecal/core/src/pubsub/ecal_publisher.cpp index 3369d43bba..ef04c32cf5 100644 --- a/ecal/core/src/pubsub/ecal_publisher.cpp +++ b/ecal/core/src/pubsub/ecal_publisher.cpp @@ -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); @@ -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_)); }