lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master dfce411 2/4: Drop 'get_'- prefix from more me


From: Greg Chicares
Subject: [lmi-commits] [lmi] master dfce411 2/4: Drop 'get_'- prefix from more member functions
Date: Sat, 26 May 2018 09:54:17 -0400 (EDT)

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

    Drop 'get_'- prefix from more member functions
---
 ledger_pdf_generator_wx.cpp | 18 +++++++++---------
 wx_table_generator.cpp      |  8 ++++----
 wx_table_generator.hpp      |  4 ++--
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index bce326d..29f330f 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -1365,7 +1365,7 @@ class numeric_summary_table_cell
             ,output_mode
             );
 
-        pos_y += table_gen.get_separator_line_height();
+        pos_y += table_gen.separator_line_height();
         table_gen.output_horz_separator
             (column_guar_account_value
             ,column_separator_guar_non_guar
@@ -1396,7 +1396,7 @@ class numeric_summary_table_cell
             ,output_mode
             );
 
-        pos_y += table_gen.get_separator_line_height();
+        pos_y += table_gen.separator_line_height();
         table_gen.output_horz_separator
             (column_mid_account_value
             ,column_separator_mid_curr
@@ -1413,7 +1413,7 @@ class numeric_summary_table_cell
 
         table_gen.output_headers(pos_y, output_mode);
 
-        pos_y += table_gen.get_separator_line_height();
+        pos_y += table_gen.separator_line_height();
         table_gen.output_horz_separator(0, column_max, pos_y, output_mode);
 
         // And now the table values themselves.
@@ -1697,7 +1697,7 @@ class page_with_tabular_report
 
         table_gen.output_headers(pos_y, output_mode);
 
-        pos_y += table_gen.get_separator_line_height();
+        pos_y += table_gen.separator_line_height();
         auto const ncols = get_table_columns().size();
         table_gen.output_horz_separator(0, ncols, pos_y, output_mode);
 
@@ -1801,7 +1801,7 @@ class ill_reg_tabular_detail_page : public 
page_with_tabular_report
             ,output_mode
             );
 
-        pos_y += table_gen.get_separator_line_height();
+        pos_y += table_gen.separator_line_height();
         table_gen.output_horz_separator
             (column_guar_account_value
             ,column_dummy_separator
@@ -2208,7 +2208,7 @@ class page_with_basic_tabular_report : public 
page_with_tabular_report
             ,output_mode
             );
 
-        pos_y += table_gen.get_separator_line_height();
+        pos_y += table_gen.separator_line_height();
         table_gen.output_horz_separator
             (column_guar0_cash_surr_value
             ,column_separator_guar_curr0
@@ -2251,7 +2251,7 @@ class page_with_basic_tabular_report : public 
page_with_tabular_report
                     ,output_mode
                     );
 
-                y += table_gen.get_separator_line_height();
+                y += table_gen.separator_line_height();
                 table_gen.output_horz_separator
                     (begin_column
                     ,end_column
@@ -2669,7 +2669,7 @@ class reg_d_individual_irr_base : public 
page_with_tabular_report
             ,output_mode
             );
 
-        pos_y += table_gen.get_separator_line_height();
+        pos_y += table_gen.separator_line_height();
         table_gen.output_horz_separator
             (column_zero_cash_surr_value
             ,column_zero_irr_surr_value
@@ -2818,7 +2818,7 @@ class reg_d_individual_curr : public 
page_with_tabular_report
             ,output_mode
             );
 
-        pos_y += table_gen.get_separator_line_height();
+        pos_y += table_gen.separator_line_height();
         table_gen.output_horz_separator
             (column_curr_investment_income
             ,column_max
diff --git a/wx_table_generator.cpp b/wx_table_generator.cpp
index 2873175..5b76f2e 100644
--- a/wx_table_generator.cpp
+++ b/wx_table_generator.cpp
@@ -203,7 +203,7 @@ void wx_table_generator::output_headers
     wxDCFontChanger header_font_setter(dc_);
     if(use_bold_headers_)
         {
-        header_font_setter.Set(get_header_font());
+        header_font_setter.Set(header_font());
         // The distance from the font's descender line to its ascender
         // line must not exceed the distance between lines.
         LMI_ASSERT(dc().GetCharHeight() <= row_height());
@@ -402,7 +402,7 @@ int wx_table_generator::row_height() const
 
 // Return the amount of vertical space taken by separator lines in the
 // table headers.
-int wx_table_generator::get_separator_line_height() const
+int wx_table_generator::separator_line_height() const
 {
     // This is completely arbitrary and chosen just because it seems to
     // look well.
@@ -453,7 +453,7 @@ void wx_table_generator::enroll_column(column_parameters 
const& z)
         wxDCFontChanger header_font_setter(dc_);
         if(use_bold_headers_)
             {
-            header_font_setter.Set(get_header_font());
+            header_font_setter.Set(header_font());
             }
 
         wxCoord w, h, lh;
@@ -814,7 +814,7 @@ wxRect wx_table_generator::cell_rect(std::size_t column, 
int y) const
 
 /// Return the font used for the headers.
 
-wxFont wx_table_generator::get_header_font() const
+wxFont wx_table_generator::header_font() const
 {
     return dc().GetFont().Bold();
 }
diff --git a/wx_table_generator.hpp b/wx_table_generator.hpp
index 1009d00..99a4dc9 100644
--- a/wx_table_generator.hpp
+++ b/wx_table_generator.hpp
@@ -122,7 +122,7 @@ class wx_table_generator
         );
 
     int row_height() const;
-    int get_separator_line_height() const;
+    int separator_line_height() const;
 
     wxRect text_rect(std::size_t column, int y) const;
 
@@ -143,7 +143,7 @@ class wx_table_generator
 
     wxRect cell_rect(std::size_t column, int y) const;
 
-    wxFont get_header_font() const;
+    wxFont header_font() const;
 
     // Const private accessors. Used in the implementation to
     // distinguish access from mutation.



reply via email to

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