aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-05-02 10:06:46 +1000
committerNeil <nyamatongwe@gmail.com>2017-05-02 10:06:46 +1000
commitffeb34c29ffd27e1a1a67cb26ceec8fc1253a410 (patch)
tree59d17870a0bea7b8a058100fdd98666227e7684e /src/Editor.cxx
parent782ada0bab34bb56c4023c070e6eb355ca32cdf2 (diff)
downloadscintilla-mirror-ffeb34c29ffd27e1a1a67cb26ceec8fc1253a410.tar.gz
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.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}