Skip to content
Snippets Groups Projects

Fix defects ( passed by value) reported by cppcheck

Merged Andrii Verbytskyi requested to merge averbyts/athena:cppcheck_passbyvalue into 23.0
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -9,7 +9,7 @@
// Get Amdcsimrec REAL (double) Variable -------------------------------------------
double GetAmdcRealVar(const std::string& VarName, int I1, int I2, int I3){
double GetAmdcRealVar(std::string VarName, int I1, int I2, int I3){
char NAMEVAR[40];
int Long = VarName.size();
if( Long > 40 ){ Long = 40; }
@@ -21,7 +21,7 @@ double GetAmdcRealVar(const std::string& VarName, int I1, int I2, int I3){
// Get Amdcsimrec INTEGER (int) Variable -------------------------------------------
int GetAmdcIntVar(const std::string& VarName, int I1, int I2, int I3){
int GetAmdcIntVar(std::string VarName, int I1, int I2, int I3){
char NAMEVAR[40];
int Long = VarName.size();
if( Long > 40 ){ Long = 40; }
@@ -33,7 +33,7 @@ int GetAmdcIntVar(const std::string& VarName, int I1, int I2, int I3){
// Get Amdcsimrec CHARACTER (std::string) Variable ---------------------------------
std::string GetAmdcCharVar(const std::string& VarName, int I1, int I2, int I3){
std::string GetAmdcCharVar(std::string VarName, int I1, int I2, int I3){
char NAMEVAR[40];
int Long = VarName.size();
if( Long > 40 ){ Long = 40; }
Loading