lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 0bb6ff8 7/9: Reformat and reuse if-with-initi


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 0bb6ff8 7/9: Reformat and reuse if-with-initializer
Date: Wed, 19 Sep 2018 09:19:34 -0400 (EDT)

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

    Reformat and reuse if-with-initializer
    
    Shortened an overlong line, using essentially the same format as
    for-statements elsewhere in lmi. Applied the same technique in a
    nearly identical instance.
---
 ledger_pdf_generator_wx.cpp | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index 8f1c9e4..510fc2c 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -1048,8 +1048,10 @@ class page_with_marginals : public logical_page
             ,oe_only_measure
             );
 
-        auto const& upper_template = get_upper_footer_template_name();
-        if(!upper_template.empty())
+        if
+            (auto const& upper_template = get_upper_footer_template_name()
+            ;!upper_template.empty()
+            )
             {
             footer_height += writer.output_html
                 (frame_horz_margin
@@ -1093,7 +1095,10 @@ class page_with_marginals : public logical_page
         // present lower part.
         auto y = footer_top_;
 
-        if(auto const& upper_template = get_upper_footer_template_name(); 
!upper_template.empty())
+        if
+            (auto const& upper_template = get_upper_footer_template_name()
+            ;!upper_template.empty()
+            )
             {
             y += pdf_dc.GetCharHeight();
 



reply via email to

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