diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-18 19:39:42 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-18 19:39:42 +1100 | 
| commit | 402e089842d5aa2bb3774a665e26c42dc91fa5b4 (patch) | |
| tree | 58304e9b27215782eec1a5c38e0636b2a18bafef /src/EditView.cxx | |
| parent | 43c4b61bdd3669c2cc08d50f10401f0b04befcc9 (diff) | |
| download | scintilla-mirror-402e089842d5aa2bb3774a665e26c42dc91fa5b4.tar.gz | |
Use unique_ptr for Surface::Allocate to show transfer of ownership.
Diffstat (limited to 'src/EditView.cxx')
| -rw-r--r-- | src/EditView.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx index 1c6e41096..1ec163d27 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -268,11 +268,11 @@ void EditView::DropGraphics(bool freeObjects) {  void EditView::AllocateGraphics(const ViewStyle &vsDraw) {  	if (!pixmapLine) -		pixmapLine.reset(Surface::Allocate(vsDraw.technology)); +		pixmapLine = Surface::Allocate(vsDraw.technology);  	if (!pixmapIndentGuide) -		pixmapIndentGuide.reset(Surface::Allocate(vsDraw.technology)); +		pixmapIndentGuide = Surface::Allocate(vsDraw.technology);  	if (!pixmapIndentGuideHighlight) -		pixmapIndentGuideHighlight.reset(Surface::Allocate(vsDraw.technology)); +		pixmapIndentGuideHighlight = Surface::Allocate(vsDraw.technology);  }  static const char *ControlCharacterString(unsigned char ch) noexcept {  | 
