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/MarginView.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/MarginView.cxx')
-rw-r--r-- | src/MarginView.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx index c7da7e667..555720536 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -126,11 +126,11 @@ void MarginView::DropGraphics(bool freeObjects) { void MarginView::AllocateGraphics(const ViewStyle &vsDraw) { if (!pixmapSelMargin) - pixmapSelMargin.reset(Surface::Allocate(vsDraw.technology)); + pixmapSelMargin = Surface::Allocate(vsDraw.technology); if (!pixmapSelPattern) - pixmapSelPattern.reset(Surface::Allocate(vsDraw.technology)); + pixmapSelPattern = Surface::Allocate(vsDraw.technology); if (!pixmapSelPatternOffset1) - pixmapSelPatternOffset1.reset(Surface::Allocate(vsDraw.technology)); + pixmapSelPatternOffset1 = Surface::Allocate(vsDraw.technology); } void MarginView::RefreshPixMaps(Surface *surfaceWindow, WindowID wid, const ViewStyle &vsDraw) { |