diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2021-04-26 17:08:59 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2021-04-26 17:08:59 +1000 |
commit | 8f04bd4802e0e6063175b20d36df0d812b6a5db4 (patch) | |
tree | 74ecbb47d1653d24cc3939ff7e42297a548b2c0c /src/MarginView.cxx | |
parent | 8bf2761612f478604b92e06a10df872b1b48d775 (diff) | |
download | scintilla-mirror-8f04bd4802e0e6063175b20d36df0d812b6a5db4.tar.gz |
Change std::optional value() to * as value() is not implemented in older macOS
releases. Using value() produces error:
error: call to unavailable member function 'value': introduced in macOS 10.14
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r-- | src/MarginView.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx index 0c0045133..e6fffd178 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -143,11 +143,11 @@ void MarginView::RefreshPixMaps(Surface *surfaceWindow, const ViewStyle &vsDraw) if (vsDraw.foldmarginColour) { // override default fold margin colour - colourFMFill = vsDraw.foldmarginColour.value(); + colourFMFill = *vsDraw.foldmarginColour; } if (vsDraw.foldmarginHighlightColour) { // override default fold margin highlight colour - colourFMStripes = vsDraw.foldmarginHighlightColour.value(); + colourFMStripes = *vsDraw.foldmarginHighlightColour; } pixmapSelPattern->FillRectangle(rcPattern, colourFMFill); |