[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)
- [lmi-commits] [lmi] master updated (eafa74e -> 246f754), Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master 9cc3f6b 05/10: Avoid passing an enum by reference,
Greg Chicares <=
- [lmi-commits] [lmi] master 20e866a 06/10: Simplify an overwrought expression, Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master b0576c8 02/10: Remove undesirable 'default:' from 'switch', Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master e26d308 09/10: Remove undesirable 'default:' from 'switch', Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master 422e64a 03/10: Remove an unimplemented 'case', Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master 92911ca 07/10: Improve documentation, Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master 9797cbc 04/10: Remove undesirable 'default:' from 'switch', Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master 78fd8b8 01/10: Remove undesirable 'default:' from 'switch', Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master 246f754 10/10: In unit tests, reflect removal of undesirable 'default:' from 'switch', Greg Chicares, 2018/02/08
- [lmi-commits] [lmi] master 3952bd0 08/10: Remove undesirable 'default:' from 'switch', Greg Chicares, 2018/02/08