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/EditView.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/EditView.h')
| -rw-r--r-- | src/EditView.h | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/EditView.h b/src/EditView.h index 7a3926aa2..a842ac63a 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -50,7 +50,7 @@ typedef void (*DrawTabArrowFn)(Surface *surface, PRectangle rcTab, int ymid);  class EditView {  public:  	PrintParameters printParameters; -	PerLine *ldTabstops; +	std::unique_ptr<PerLine> ldTabstops;  	int tabWidthMinimumPixels;  	bool hideSelection; @@ -74,9 +74,9 @@ public:  	bool imeCaretBlockOverride; -	Surface *pixmapLine; -	Surface *pixmapIndentGuide; -	Surface *pixmapIndentGuideHighlight; +	std::unique_ptr<Surface> pixmapLine; +	std::unique_ptr<Surface> pixmapIndentGuide; +	std::unique_ptr<Surface> pixmapIndentGuideHighlight;  	LineLayoutCache llc;  	PositionCache posCache; | 
