[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 174198af 12/27: Reformat
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 174198af 12/27: Reformat |
Date: |
Mon, 25 Apr 2022 12:56:15 -0400 (EDT) |
branch: master
commit 174198af706034102fa5ba4bdda8f9af1935ed48
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] master updated (c50cc9b1 -> 09e00258), Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 8ea7412a 01/27: Allow "touchstone" files to contain '\t', Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 20297761 05/27: Add a new ledger emission option, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master d4083917 07/27: Test eleven farraginous files nychthemerally, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master d195c7af 10/27: Add a unit test for ledger_format(), Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 3064fee4 09/27: Add a helper function with a deliberately ugly name, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 37b663fe 11/27: Add an option to format cents as decimal dollars, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 550db6d9 15/27: Record speed measurements, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master a7d075cd 16/27: Document, suppress, or expunge unused formats, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master fdb47029 08/27: Fix dblize()ation in commented-out code, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 174198af 12/27: Reformat,
Greg Chicares <=
- [lmi-commits] [lmi] master dcbe9418 14/27: Change currency fields in ledger to integral cents, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master af0666c3 24/27: Distinguish two ledger formats, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 7b30e2d8 03/27: Filter unexpectedly small system-test discrepancies, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master d7ab80c6 04/27: Clean up beforehand, not afterward, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 12192723 06/27: Add two new ledger emission options, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 119df7a9 13/27: Add a 'divisor' argument to LedgerBase::value_str(), Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 2b108ed7 18/27: Avoid unnecessary rounding, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master b7c61b4d 20/27: Regularize format names, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 8de190ce 17/27: Regularize whitespace, Greg Chicares, 2022/04/25
- [lmi-commits] [lmi] master 0b6a3b69 02/27: Avoid writing " \n", Greg Chicares, 2022/04/25