lmi-commits
[Top][All Lists]
Advanced

[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;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]