From ffeb34c29ffd27e1a1a67cb26ceec8fc1253a410 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 2 May 2017 10:06:46 +1000 Subject: Use unique_ptr for drawing surfaces and don't check for allocation failure as that throws an exception. Also use unique_ptr for tab stop positions. --- src/MarginView.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/MarginView.h') diff --git a/src/MarginView.h b/src/MarginView.h index eb136d71e..695126ad9 100644 --- a/src/MarginView.h +++ b/src/MarginView.h @@ -21,9 +21,9 @@ typedef void (*DrawWrapMarkerFn)(Surface *surface, PRectangle rcPlace, bool isEn */ class MarginView { public: - Surface *pixmapSelMargin; - Surface *pixmapSelPattern; - Surface *pixmapSelPatternOffset1; + std::unique_ptr pixmapSelMargin; + std::unique_ptr pixmapSelPattern; + std::unique_ptr pixmapSelPatternOffset1; // Highlight current folding block HighlightDelimiter highlightDelimiter; -- cgit v1.2.3