Skip to content

Commit

Permalink
Many minor code improvements.
Browse files Browse the repository at this point in the history
Signed-off-by: Cervenka Dusan <[email protected]>
  • Loading branch information
Hadatko committed May 15, 2023
1 parent 758f43e commit 085042c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion erpcgen/src/CGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1968,7 +1968,7 @@ string CGenerator::getErrorReturnValue(FunctionBase *fn)
}
}

string CGenerator::getFunctionServerCall(Function *fn, FunctionType *functionType, std::string prefix)
string CGenerator::getFunctionServerCall(Function *fn, FunctionType *functionType, const std::string prefix)
{
string proto = "";
if (!fn->getReturnType()->isVoid() && prefix.length() > 0)
Expand Down
5 changes: 3 additions & 2 deletions erpcgen/src/CGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ class CGenerator : public Generator
*
* @return String prototype representation for given function.
*/
std::string getFunctionPrototype(Group *group, FunctionBase *fn, const std::string &interfaceName = "", const std::string &name = "", bool interfaceClass = false);
std::string getFunctionPrototype(Group *group, FunctionBase *fn, const std::string &interfaceName = "",
const std::string &name = "", bool interfaceClass = false);

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

/*!
* @brief This function return name with guard.
Expand Down

0 comments on commit 085042c

Please sign in to comment.