diff options
author | Neil <nyamatongwe@gmail.com> | 2017-05-02 10:06:46 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-05-02 10:06:46 +1000 |
commit | ffeb34c29ffd27e1a1a67cb26ceec8fc1253a410 (patch) | |
tree | 59d17870a0bea7b8a058100fdd98666227e7684e /src/MarginView.h | |
parent | 782ada0bab34bb56c4023c070e6eb355ca32cdf2 (diff) | |
download | scintilla-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.h | 6 |
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; |