lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 9cc3f6b 05/10: Avoid passing an enum by refer


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 9cc3f6b 05/10: Avoid passing an enum by reference
Date: Thu, 8 Feb 2018 08:40:09 -0500 (EST)

branch: master
commit 9cc3f6bde87bb01fb31f1f75a224b13bdab1d008
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Avoid passing an enum by reference
    
    Removed '&' from a function's enum arguments...leaving 'const' because
    the arguments must not be changed and it isn't too weird to say so.
---
 basic_values.hpp | 4 ++--
 ihs_basicval.cpp | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/basic_values.hpp b/basic_values.hpp
index 62860da..94ec440 100644
--- a/basic_values.hpp
+++ b/basic_values.hpp
@@ -269,8 +269,8 @@ class LMI_SO BasicValues
         (std::string const& TableFile
         ,e_database_key     TableID
         ,bool               IsTableValid    = true
-        ,EBlend      const& CanBlendSmoking = CannotBlend
-        ,EBlend      const& CanBlendGender  = CannotBlend
+        ,EBlend      const  CanBlendSmoking = CannotBlend
+        ,EBlend      const  CanBlendGender  = CannotBlend
         ) const;
 
     std::vector<double> const& GetBandedCoiRates
diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index cbe2a7e..e8614e0 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -1651,8 +1651,8 @@ std::vector<double> BasicValues::GetTable
     (std::string const& TableFile
     ,e_database_key     TableID
     ,bool               IsTableValid
-    ,EBlend      const& CanBlendSmoking
-    ,EBlend      const& CanBlendGender
+    ,EBlend      const  CanBlendSmoking
+    ,EBlend      const  CanBlendGender
     ) const
 {
     if(!IsTableValid)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]