Skip to content

Commit 085042c

Browse files
committed
Many minor code improvements.
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
1 parent 758f43e commit 085042c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

erpcgen/src/CGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@ string CGenerator::getErrorReturnValue(FunctionBase *fn)
19681968
}
19691969
}
19701970

1971-
string CGenerator::getFunctionServerCall(Function *fn, FunctionType *functionType, std::string prefix)
1971+
string CGenerator::getFunctionServerCall(Function *fn, FunctionType *functionType, const std::string prefix)
19721972
{
19731973
string proto = "";
19741974
if (!fn->getReturnType()->isVoid() && prefix.length() > 0)

erpcgen/src/CGenerator.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ class CGenerator : public Generator
467467
*
468468
* @return String prototype representation for given function.
469469
*/
470-
std::string getFunctionPrototype(Group *group, FunctionBase *fn, const std::string &interfaceName = "", const std::string &name = "", bool interfaceClass = false);
470+
std::string getFunctionPrototype(Group *group, FunctionBase *fn, const std::string &interfaceName = "",
471+
const std::string &name = "", bool interfaceClass = false);
471472

472473
/*!
473474
* @brief This function return interface function representation called by server side.
@@ -477,7 +478,7 @@ class CGenerator : public Generator
477478
*
478479
* @return String representation for given function.
479480
*/
480-
std::string getFunctionServerCall(Function *fn, FunctionType *functionType = nullptr, std::string = "");
481+
std::string getFunctionServerCall(Function *fn, FunctionType *functionType = nullptr, const std::string = "");
481482

482483
/*!
483484
* @brief This function return name with guard.

0 commit comments

Comments
 (0)