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

Convert call-by-value to call-by-reference

parent fd785cf3
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ public: ...@@ -67,7 +67,7 @@ public:
* int, for testing purposes. * int, for testing purposes.
* @param msg A TC[8,1] message * @param msg A TC[8,1] message
*/ */
int call(Message msg); int call(Message& msg);
/** /**
* Includes a new function in the pointer map. This enables it to be called by way of a valid * Includes a new function in the pointer map. This enables it to be called by way of a valid
......
...@@ -30,11 +30,12 @@ ...@@ -30,11 +30,12 @@
* } * }
*/ */
int FunctionManagementService::call(Message msg) { int FunctionManagementService::call(Message& msg) {
/** /**
* @todo: Add test for message and service type using the ErrorHandler * @todo: Add test for message and service type using the ErrorHandler
* @todo: Convert all functions to void (use error reports for tests instead of return numbers) * @todo: Convert all functions to void (use error reports for tests instead of return numbers)
*/ */
msg.resetRead();
ErrorHandler::assertInternal(msg.messageType == 1 && msg.serviceType == 8, ErrorHandler::assertInternal(msg.messageType == 1 && msg.serviceType == 8,
ErrorHandler::InternalErrorType::UnacceptablePacket); ErrorHandler::InternalErrorType::UnacceptablePacket);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment