Skip to content
Snippets Groups Projects
Commit 44326296 authored by Grigoris Pavlakis's avatar Grigoris Pavlakis
Browse files

Convert call-by-value to call-by-reference as suggested during the review

parent 0edc363e
Branches
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ ParameterService::ParameterService() { ...@@ -34,7 +34,7 @@ ParameterService::ParameterService() {
#endif #endif
} }
void ParameterService::reportParameterIds(Message paramIds) { void ParameterService::reportParameterIds(Message& paramIds) {
Message reqParam(20, 2, Message::TM, 1); // empty TM[20, 2] parameter report message Message reqParam(20, 2, Message::TM, 1); // empty TM[20, 2] parameter report message
// assertion: correct message, packet and service type (at failure throws an // assertion: correct message, packet and service type (at failure throws an
...@@ -65,7 +65,7 @@ void ParameterService::reportParameterIds(Message paramIds) { ...@@ -65,7 +65,7 @@ void ParameterService::reportParameterIds(Message paramIds) {
storeMessage(reqParam); storeMessage(reqParam);
} }
void ParameterService::setParameterIds(Message newParamValues) { void ParameterService::setParameterIds(Message& newParamValues) {
// assertion: correct message, packet and service type (at failure throws an // assertion: correct message, packet and service type (at failure throws an
// InternalError::UnacceptablePacket which gets logged) // InternalError::UnacceptablePacket which gets logged)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment