diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-16 17:38:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-16 23:49:13 +0200 |
| commit | 02dd03b4ef42db0a43b2011b5c34446f6f987c12 (patch) | |
| tree | 1d78e3b1b5bc63cf38d72edc9cba485bd9727c0d /src/text_formatter.cc | |
| parent | b33a97e3aa7dd3a0ddd3687762ff42a9a9e1079f (diff) | |
Extract StreamFormatter.
Diffstat (limited to 'src/text_formatter.cc')
| -rw-r--r-- | src/text_formatter.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/text_formatter.cc b/src/text_formatter.cc index a5c630b3..a147ea83 100644 --- a/src/text_formatter.cc +++ b/src/text_formatter.cc @@ -22,11 +22,12 @@ #include "text_formatter.h" +using std::unique_ptr; using namespace dcp; TextFormatter::TextFormatter(boost::filesystem::path file) - : Formatter(file) + : StreamFormatter(file) { } @@ -47,11 +48,11 @@ TextFormatter::subheading(std::string const& text) } -Formatter::Wrap +unique_ptr<Formatter::Wrap> TextFormatter::unordered_list() { _indent++; - return Wrap(this, "", [this]() { _indent--; }); + return unique_ptr<Formatter::Wrap>(new Wrap(this, "", [this]() { _indent--; })); } |
