summaryrefslogtreecommitdiff
path: root/src/gfx_layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx_layout.h')
-rw-r--r--src/gfx_layout.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gfx_layout.h b/src/gfx_layout.h
index 8a642c795..104736611 100644
--- a/src/gfx_layout.h
+++ b/src/gfx_layout.h
@@ -142,7 +142,7 @@ public:
};
virtual void Reflow() = 0;
- virtual const Line *NextLine(int max_width) = 0;
+ virtual std::unique_ptr<const Line> NextLine(int max_width) = 0;
};
/**
@@ -150,7 +150,7 @@ public:
*
* It also accounts for the memory allocations and frees.
*/
-class Layouter : public AutoDeleteSmallVector<const ParagraphLayouter::Line *> {
+class Layouter : public std::vector<std::unique_ptr<const ParagraphLayouter::Line>> {
const char *string; ///< Pointer to the original string.
/** Key into the linecache */