lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 747887d 1/3: Rename a member function for con


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 747887d 1/3: Rename a member function for concinnity
Date: Tue, 20 Mar 2018 13:25:59 -0400 (EDT)

branch: master
commit 747887d8f9e1493c2ae3b3afcec44bd3c270a4d2
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Rename a member function for concinnity
---
 ledger.cpp      | 4 ++--
 ledger_base.cpp | 2 +-
 ledger_base.hpp | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/ledger.cpp b/ledger.cpp
index 3925fba..31fb955 100644
--- a/ledger.cpp
+++ b/ledger.cpp
@@ -327,11 +327,11 @@ void Ledger::AutoScale()
     int const max_power = 9;
     int const k = scale_power(max_power, extrema.minimum(), extrema.maximum());
 
-    ledger_invariant_->ApplyScaleFactor(k);
+    ledger_invariant_->apply_scale_factor(k);
 
     for(auto& i : l_map_rep)
         {
-        i.second.ApplyScaleFactor(k);
+        i.second.apply_scale_factor(k);
         }
 }
 
diff --git a/ledger_base.cpp b/ledger_base.cpp
index cd4bf08..42b01e5 100644
--- a/ledger_base.cpp
+++ b/ledger_base.cpp
@@ -346,7 +346,7 @@ namespace
 /// its initial value) even if a column representing the same quantity
 /// (using a vector variable) depicts it as $1,000,000 thousands.
 
-void LedgerBase::ApplyScaleFactor(int decimal_power)
+void LedgerBase::apply_scale_factor(int decimal_power)
 {
     if(0 != scale_power_)
         {
diff --git a/ledger_base.hpp b/ledger_base.hpp
index 2fe15a2..499a1e8 100644
--- a/ledger_base.hpp
+++ b/ledger_base.hpp
@@ -175,11 +175,11 @@ class LMI_SO LedgerBase
   public:
     virtual ~LedgerBase() = default;
 
-    void               ApplyScaleFactor(int decimal_power);
+    void               apply_scale_factor(int decimal_power);
 
     minmax<double>     scalable_extrema() const;
     std::string const& ScaleUnit() const;
-// PDF !! expunge
+// PDF !! expunge ScalePower(); rename ScaleUnit()
     int                ScalePower() const;
     std::string        value_str(std::string const& map_key, int index) const;
     std::string        value_str(std::string const& map_key) const;



reply via email to

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