Skip to content

Commit 52695fa

Browse files
committed
Refs #22682: Apply suggested changes. Update send_reply signature.
Signed-off-by: Carlosespicur <[email protected]>
1 parent abc9e46 commit 52695fa

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

include/fastdds/dds/rpc/Replier.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class Replier : public RPCEntity
5454
*/
5555
virtual ReturnCode_t send_reply(
5656
void* data,
57-
RequestInfo& info) = 0;
57+
const RequestInfo& info) = 0;
5858

5959
/**
6060
* @brief Take a request message from the Replier DataReader's history.

src/cpp/fastdds/rpc/ReplierImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const std::string& ReplierImpl::get_service_name() const
4848

4949
ReturnCode_t ReplierImpl::send_reply(
5050
void* data,
51-
RequestInfo& info)
51+
const RequestInfo& info)
5252
{
5353
FASTDDS_TODO_BEFORE(3, 3, "Implement matching algorithm");
5454

src/cpp/fastdds/rpc/ReplierImpl.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ReplierImpl : public Replier
6868
*/
6969
ReturnCode_t send_reply(
7070
void* data,
71-
RequestInfo& info) override;
71+
const RequestInfo& info) override;
7272

7373
/**
7474
* @brief Take a request message from the Replier DataReader's history.

test/blackbox/api/dds-pim/ReqRepHelloWorldReplier.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void ReqRepHelloWorldReplier::init_with_custom_qos(
102102
}
103103

104104
void ReqRepHelloWorldReplier::newNumber(
105-
RequestInfo& info,
105+
const RequestInfo& info,
106106
uint16_t number)
107107
{
108108
HelloWorld hello;

test/blackbox/api/dds-pim/ReqRepHelloWorldReplier.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ReqRepHelloWorldReplier
6262
}
6363

6464
void newNumber(
65-
eprosima::fastdds::dds::rpc::RequestInfo& info,
65+
const eprosima::fastdds::dds::rpc::RequestInfo& info,
6666
uint16_t number);
6767

6868
void wait_discovery();

test/blackbox/api/dds-pim/TCPReqRepHelloWorldReplier.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void TCPReqRepHelloWorldReplier::init(
147147
}
148148

149149
void TCPReqRepHelloWorldReplier::newNumber(
150-
RequestInfo& info,
150+
const RequestInfo& info,
151151
uint16_t number)
152152
{
153153
HelloWorld hello;

test/blackbox/api/dds-pim/TCPReqRepHelloWorldReplier.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class TCPReqRepHelloWorldReplier
6262
}
6363

6464
void newNumber(
65-
eprosima::fastdds::dds::rpc::RequestInfo& info,
65+
const eprosima::fastdds::dds::rpc::RequestInfo& info,
6666
uint16_t number);
6767

6868
void wait_discovery(

0 commit comments

Comments
 (0)