lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 5acf3fb 5/6: Rename a member function for con


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5acf3fb 5/6: Rename a member function for concinnity
Date: Sat, 13 Oct 2018 20:35:18 -0400 (EDT)

branch: master
commit 5acf3fb4fa7a1ea7e6338e6207e3c22c55f9cc7c
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

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

diff --git a/ledger_base.cpp b/ledger_base.cpp
index 969e572..f00afd1 100644
--- a/ledger_base.cpp
+++ b/ledger_base.cpp
@@ -369,7 +369,7 @@ void LedgerBase::apply_scale_factor(int decimal_power)
 }
 
 //============================================================================
-std::string const& LedgerBase::ScaleUnit() const
+std::string const& LedgerBase::scale_unit() const
 {
     return scale_unit_;
 }
diff --git a/ledger_base.hpp b/ledger_base.hpp
index 866bb26..51502ed 100644
--- a/ledger_base.hpp
+++ b/ledger_base.hpp
@@ -178,7 +178,7 @@ class LMI_SO LedgerBase
     void               apply_scale_factor(int decimal_power);
 
     minmax<double>     scalable_extrema() const;
-    std::string const& ScaleUnit() const; // PDF !! rename to scale_unit()
+    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;
 
diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index 5e99bdf..c81b919 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -858,7 +858,7 @@ ledger_evaluator Ledger::make_evaluator() const
     scalars   ["SepAcctAllocation"] = &SepAcctAllocation;
     format_map["SepAcctAllocation"] = f3;
 
-    std::string ScaleUnit = invar.ScaleUnit();
+    std::string ScaleUnit = invar.scale_unit();
     strings["ScaleUnit"] = &ScaleUnit;
 
     double InitTotalSA =
diff --git a/pdf_command_wx.cpp b/pdf_command_wx.cpp
index 8e31add..9d55bfd 100644
--- a/pdf_command_wx.cpp
+++ b/pdf_command_wx.cpp
@@ -950,7 +950,7 @@ class pdf_illustration : protected html_interpolator, 
protected pdf_writer_wx
 
         add_variable
             ("HasScaleUnit"
-            ,!invar.ScaleUnit().empty()
+            ,!invar.scale_unit().empty()
             );
 
         add_variable



reply via email to

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