summaryrefslogtreecommitdiff
path: root/src/text_formatter.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-09-16 17:38:43 +0200
committerCarl Hetherington <cth@carlh.net>2025-09-16 23:49:13 +0200
commit02dd03b4ef42db0a43b2011b5c34446f6f987c12 (patch)
tree1d78e3b1b5bc63cf38d72edc9cba485bd9727c0d /src/text_formatter.cc
parentb33a97e3aa7dd3a0ddd3687762ff42a9a9e1079f (diff)
Extract StreamFormatter.
Diffstat (limited to 'src/text_formatter.cc')
-rw-r--r--src/text_formatter.cc7
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--; }));
}