From 02dd03b4ef42db0a43b2011b5c34446f6f987c12 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Sep 2025 17:38:43 +0200 Subject: Extract StreamFormatter. --- src/text_formatter.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/text_formatter.cc') 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 TextFormatter::unordered_list() { _indent++; - return Wrap(this, "", [this]() { _indent--; }); + return unique_ptr(new Wrap(this, "", [this]() { _indent--; })); } -- cgit v1.2.3