[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5d225f5 7/9: Move commentary to point of memb
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5d225f5 7/9: Move commentary to point of member-function definition |
Date: |
Wed, 4 Apr 2018 21:27:38 -0400 (EDT) |
branch: master
commit 5d225f575ae1bfccb3ce290ccb5d5eaad3288884
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Move commentary to point of member-function definition
---
pdf_writer_wx.cpp | 7 +++++++
pdf_writer_wx.hpp | 6 ------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/pdf_writer_wx.cpp b/pdf_writer_wx.cpp
index 27c6859..eef0e31 100644
--- a/pdf_writer_wx.cpp
+++ b/pdf_writer_wx.cpp
@@ -253,6 +253,13 @@ int pdf_writer_wx::get_page_bottom() const
return total_page_size_.y - vert_margin;
}
+/// Save the PDF to the output file name specified in the ctor.
+///
+/// This object becomes unusable after saving, i.e. no other methods can be
+/// called on it. To help with preventing using any of them accidentally,
+/// this method is rvalue-reference-qualified, meaning that calling
+/// std::move() is required to call it.
+
void pdf_writer_wx::save() &&
{
pdf_dc_.EndDoc();
diff --git a/pdf_writer_wx.hpp b/pdf_writer_wx.hpp
index 8abdf45..7e36328 100644
--- a/pdf_writer_wx.hpp
+++ b/pdf_writer_wx.hpp
@@ -54,12 +54,6 @@ class pdf_writer_wx
~pdf_writer_wx();
- // Save the PDF to the output file name specified in the ctor.
- //
- // This object becomes unusable after saving, i.e. no other methods can be
- // called on it. To help with preventing using any of them accidentally,
- // this method is rvalue-reference-qualified, meaning that calling
- // std::move() is required to call it.
void save() &&;
// Wherever possible, use the following high-level functions
- [lmi-commits] [lmi] master updated (d9f9215 -> f4580cf), Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 035e5a0 2/9: Simplify, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master afdbbeb 6/9: Consolidate commentary, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 38df10a 4/9: Simplify diagnostics, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 6586cab 1/9: Simplify, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master ecd1362 3/9: Shorten diagnostics, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 783f4dd 5/9: Consolidate and revise documentation, Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master f4580cf 9/9: Don't ref-qualify save(), Greg Chicares, 2018/04/04
- [lmi-commits] [lmi] master 5d225f5 7/9: Move commentary to point of member-function definition,
Greg Chicares <=
- [lmi-commits] [lmi] master f5651d1 8/9: Prevent save() from being called twice, Greg Chicares, 2018/04/04