[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 76bcb28 9/9: Avoid passing an enum by const v
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 76bcb28 9/9: Avoid passing an enum by const value |
Date: |
Fri, 9 Feb 2018 17:39:17 -0500 (EST) |
branch: master
commit 76bcb284b68fb9930840854fc1e61efd33456452
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Avoid passing an enum by const value
This really was too weird--see:
https://lists.nongnu.org/archive/html/lmi/2018-02/msg00040.html
---
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 94ec440..b7563e5 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 CanBlendSmoking = CannotBlend
+ ,EBlend CanBlendGender = CannotBlend
) const;
std::vector<double> const& GetBandedCoiRates
diff --git a/ihs_basicval.cpp b/ihs_basicval.cpp
index 9e47e47..26ae3c1 100644
--- a/ihs_basicval.cpp
+++ b/ihs_basicval.cpp
@@ -1615,8 +1615,8 @@ std::vector<double> BasicValues::GetTable
(std::string const& TableFile
,e_database_key TableID
,bool IsTableValid
- ,EBlend const CanBlendSmoking
- ,EBlend const CanBlendGender
+ ,EBlend CanBlendSmoking
+ ,EBlend CanBlendGender
) const
{
if(!IsTableValid)
- [lmi-commits] [lmi] master updated (246f754 -> 76bcb28), Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 2c2145d 3/9: Fix closing brace indentation in wx_table_generator.cpp, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 4b75c18 5/9: Add a comment explaining why column_info::width_ is not const, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 11da7b5 1/9: Extract get_needed_pages_count() from PDF generation code, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 58c87b5 7/9: Make column_info::is_variable_width_ field private, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 76bcb28 9/9: Avoid passing an enum by const value,
Greg Chicares <=
- [lmi-commits] [lmi] master ce0f83e 8/9: Clip variable-width columns in wx_table_generator, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 8c1e124 2/9: Add simple unit test for get_needed_pages_count(), Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 79144a7 4/9: Make unchangeable wx_table_generator::column_info fields const, Greg Chicares, 2018/02/09
- [lmi-commits] [lmi] master 2b0c1fd 6/9: Replace column_info::is_centered_ with is_centered(), Greg Chicares, 2018/02/09