summaryrefslogtreecommitdiff
path: root/src/text_formatter.cc
diff options
context:
space:
mode:
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--; }));
}