lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 039c1fd 2/8: Declare a variable only in the s


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 039c1fd 2/8: Declare a variable only in the scope where it's used
Date: Wed, 12 Sep 2018 12:08:05 -0400 (EDT)

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

    Declare a variable only in the scope where it's used
---
 ledger_pdf_generator_wx.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index e06641a..e8d9c58 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -1418,7 +1418,6 @@ class numeric_summary_table_cell
         pos_y += table_gen.separator_line_height();
 
         auto const& invar = ledger.GetLedgerInvariant();
-        auto const& interpolate_html = 
pdf_context_for_html_output.interpolate_html();
 
         int const year_max = 
pdf_context_for_html_output.ledger().GetMaxLength();
         int const age_last = 70;
@@ -1456,6 +1455,7 @@ class numeric_summary_table_cell
 
                 case oe_render:
                     {
+                    auto const& interpolate_html = 
pdf_context_for_html_output.interpolate_html();
                     auto const& columns = get_table_columns();
                     std::vector<std::string> visible_values;
                     for(int j = 0; j < lmi::ssize(columns); ++j)



reply via email to

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