[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master a738b9f 7/7: Use identical variables identica
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master a738b9f 7/7: Use identical variables identically |
Date: |
Sun, 13 May 2018 19:45:55 -0400 (EDT) |
branch: master
commit a738b9f4c1ac7c12d054b8caa856cbc2764da7ef
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Use identical variables identically
In some cases, 'pos_y_copy' was used one way:
make a copy, use it immediately, then use the original
and in other cases, another way:
make a copy, use the original, restore the original, use the original
Changed the latter cases to work the former way, for consistency.
---
ledger_pdf_generator_wx.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index 5b58b3a..74ff28c 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -2234,11 +2234,10 @@ class page_with_basic_tabular_report : public
page_with_tabular_report
("Using guaranteed charges"
,column_guar0_cash_surr_value
,column_separator_guar_curr0
- ,pos_y
+ ,pos_y_copy
,output_mode
);
- pos_y = pos_y_copy;
table_gen.output_super_header
("Using current charges"
,column_curr0_cash_surr_value
@@ -2687,7 +2686,7 @@ class reg_d_individual_irr_base : public
page_with_tabular_report
(interpolate_html(header_zero.str()).as_html()
,column_zero_cash_surr_value
,column_zero_irr_surr_value
- ,pos_y
+ ,pos_y_copy
,output_mode
);
@@ -2700,7 +2699,6 @@ class reg_d_individual_irr_base : public
page_with_tabular_report
<< "Return*"
;
- pos_y = pos_y_copy;
table_gen.output_super_header
(interpolate_html(header_nonzero.str()).as_html()
,column_nonzero_cash_surr_value
- [lmi-commits] [lmi] master updated (45b086a -> a738b9f), Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master 5fd8c4b 6/7: Name identical variables identically, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master a738b9f 7/7: Use identical variables identically,
Greg Chicares <=
- [lmi-commits] [lmi] master de4de8a 2/7: Use same argument names in implementation as in header, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master 9aa7748 1/7: Correct a misleading comment, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master ff9d3bc 3/7: Rename a member function for clarity, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master 06d9a8c 5/7: Pass modifiable arguments by reference, Greg Chicares, 2018/05/14
- [lmi-commits] [lmi] master a3a294f 4/7: Pass modifiable arguments by reference, Greg Chicares, 2018/05/14