[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 20e866a 06/10: Simplify an overwrought expres
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 20e866a 06/10: Simplify an overwrought expression |
Date: |
Thu, 8 Feb 2018 08:40:10 -0500 (EST) |
branch: master
commit 20e866a90357bf0c0b0390980efb816ccb82da6d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Simplify an overwrought expression
---
ledger_invariant.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ledger_invariant.cpp b/ledger_invariant.cpp
index 14a576b..6c2758d 100644
--- a/ledger_invariant.cpp
+++ b/ledger_invariant.cpp
@@ -849,7 +849,7 @@ void LedgerInvariant::Init(BasicValues const* b)
);
if(oe_tobacco_nontobacco == smoke_or_tobacco)
{
- switch(mce_smoking(b->yare_input_.Smoking).value())
+ switch(b->yare_input_.Smoking)
{
case mce_smoker:
{
- [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, 2018/02/08
- [lmi-commits] [lmi] master 20e866a 06/10: Simplify an overwrought expression,
Greg Chicares <=
- [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