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/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 5330ea45b..9344b7d94 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1653,7 +1653,7 @@ void Editor::PaintSelMargin(Surface *surfaceWindow, PRectangle &rc) { Surface *surface; if (view.bufferedDraw) { - surface = marginView.pixmapSelMargin; + surface = marginView.pixmapSelMargin.get(); } else { surface = surfaceWindow; } -- cgit v1.2.3