lmi-commits
[Top][All Lists]
Advanced

[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



reply via email to

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