[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8cccd20 5/9: Note a mystery
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 8cccd20 5/9: Note a mystery |
Date: |
Wed, 19 Sep 2018 09:19:33 -0400 (EDT) |
branch: master
commit 8cccd20774ffd95c29b24f7f939dcf40495a1244
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Note a mystery
It seems that this nowhere-referenced object must exist. Made its name
a noun because it's an object; using a verb as the name made
foo::bar set_xyzzy(a, b, c);
look like a function declaration.
---
ledger_pdf_generator_wx.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/ledger_pdf_generator_wx.cpp b/ledger_pdf_generator_wx.cpp
index ee260cb..c1524ea 100644
--- a/ledger_pdf_generator_wx.cpp
+++ b/ledger_pdf_generator_wx.cpp
@@ -772,8 +772,12 @@ class pdf_illustration : protected html_interpolator,
protected pdf_writer_wx
// Render all pages to the specified PDF file.
void render_all()
{
- html_cell_for_pdf_output::pdf_context_setter
- set_pdf_context(ledger_, get_writer(), get_interpolator());
+ // PDF !! Apparently this is some sort of quasi-global object?
+ html_cell_for_pdf_output::pdf_context_setter the_pdf_context
+ {ledger_
+ ,get_writer()
+ ,get_interpolator()
+ };
for(auto const& i : pages_)
{
- [lmi-commits] [lmi] master updated (ec872ae -> 05129d0), Greg Chicares, 2018/09/19
- [lmi-commits] [lmi] master 3149080 4/9: Reformat some very long lines, Greg Chicares, 2018/09/19
- [lmi-commits] [lmi] master 1c240f6 1/9: Add missing piece of PDF context to class pdf_illustration, Greg Chicares, 2018/09/19
- [lmi-commits] [lmi] master 8cccd20 5/9: Note a mystery,
Greg Chicares <=
- [lmi-commits] [lmi] master 00e5909 3/9: Explicitly use base-class accessor, Greg Chicares, 2018/09/19
- [lmi-commits] [lmi] master 71ad6f2 8/9: Deal more explicitly with pointers, Greg Chicares, 2018/09/19
- [lmi-commits] [lmi] master 05129d0 9/9: Adjust whitespace for vertical alignment, Greg Chicares, 2018/09/19
- [lmi-commits] [lmi] master 0bb6ff8 7/9: Reformat and reuse if-with-initializer, Greg Chicares, 2018/09/19
- [lmi-commits] [lmi] master e5194ea 6/9: Adjust whitespace for vertical alignment, Greg Chicares, 2018/09/19
- [lmi-commits] [lmi] master 5f53cca 2/9: Appropriately treat font sizes as static data, Greg Chicares, 2018/09/19