aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.h
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/MarginView.h
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/MarginView.h')
-rw-r--r--src/MarginView.h6
1 files changed, 3 insertions, 3 deletions
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<Surface> pixmapSelMargin;
+ std::unique_ptr<Surface> pixmapSelPattern;
+ std::unique_ptr<Surface> pixmapSelPatternOffset1;
// Highlight current folding block
HighlightDelimiter highlightDelimiter;