[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] valyuta/007 6569915e 06/10: Reformat
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] valyuta/007 6569915e 06/10: Reformat |
Date: |
Tue, 19 Apr 2022 19:00:41 -0400 (EDT) |
branch: valyuta/007
commit 6569915e8baeada1c64eecb4d30d7d20088da0c9
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Reformat
This first of two steps is a pure refactoring, whose purpose is to
make the second step (in the next commit) easier to review.
---
ledger_base.cpp | 9 +++++++--
ledger_base.hpp | 9 +++++++--
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/ledger_base.cpp b/ledger_base.cpp
index 4b1853a5..fb4c74f4 100644
--- a/ledger_base.cpp
+++ b/ledger_base.cpp
@@ -140,7 +140,10 @@ void LedgerBase::Copy(LedgerBase const& obj)
}
//============================================================================
-std::string LedgerBase::value_str(std::string const& map_key, int index) const
+std::string LedgerBase::value_str
+ (std::string const& map_key
+ ,int index
+ ) const
{
double_vector_map::const_iterator found = AllVectors.find(map_key);
if(AllVectors.end() != found)
@@ -153,7 +156,9 @@ std::string LedgerBase::value_str(std::string const&
map_key, int index) const
}
//============================================================================
-std::string LedgerBase::value_str(std::string const& map_key) const
+std::string LedgerBase::value_str
+ (std::string const& map_key
+ ) const
{
string_map::const_iterator found_string = Strings.find(map_key);
if(Strings.end() != found_string)
diff --git a/ledger_base.hpp b/ledger_base.hpp
index b4ff76f4..e930ff2a 100644
--- a/ledger_base.hpp
+++ b/ledger_base.hpp
@@ -179,8 +179,13 @@ class LMI_SO LedgerBase
minmax<double> scalable_extrema() const;
std::string const& scale_unit() const;
- std::string value_str(std::string const& map_key, int index) const;
- std::string value_str(std::string const& map_key) const;
+ std::string value_str
+ (std::string const& map_key
+ ,int index
+ ) const;
+ std::string value_str
+ (std::string const& map_key
+ ) const;
double_vector_map const& all_vectors() const;
- [lmi-commits] [lmi] valyuta/007 updated (4c404956 -> 0b887792), Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 18a91e63 01/10: Fix dblize()ation in commented-out code, Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 efa7b7a8 02/10: Add a helper function with a deliberately ugly name, Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 1aeae253 03/10: Add a unit test for ledger_format(), Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 c55ec8f6 04/10: Add an option to format cents as decimal dollars, Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 6569915e 06/10: Reformat,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/007 0b887792 10/10: Change many more ledger fields to cents, Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 7b3debe3 07/10: Add a 'divisor' argument to LedgerBase::value_str(), Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 7535505d 09/10: Change several more ledger fields to cents, Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 1189d3ac 05/10: Change a ledger field to cents, Greg Chicares, 2022/04/19
- [lmi-commits] [lmi] valyuta/007 2d26a146 08/10: Change several more ledger fields to cents, Greg Chicares, 2022/04/19