diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-26 15:40:37 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-26 15:40:37 +1100 |
commit | f96ffc423d8af568c0f1dc066a4adbec54d49bdb (patch) | |
tree | 457f7781c3e87345d13ec9734e5497d3d8134990 /src/MarginView.cxx | |
parent | a74c58f96fb97cfaa92e347bfe7e45e58d72558b (diff) | |
download | scintilla-mirror-f96ffc423d8af568c0f1dc066a4adbec54d49bdb.tar.gz |
Minor changes: const, constexpr, and noexcept.
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 04e9cad72..7c7998e07 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -121,7 +121,7 @@ void MarginView::DropGraphics() noexcept { void MarginView::RefreshPixMaps(Surface *surfaceWindow, const ViewStyle &vsDraw) { if (!pixmapSelPattern) { - const int patternSize = 8; + constexpr int patternSize = 8; pixmapSelPattern = surfaceWindow->AllocatePixMap(patternSize, patternSize); pixmapSelPatternOffset1 = surfaceWindow->AllocatePixMap(patternSize, patternSize); // This complex procedure is to reproduce the checkerboard dithered pattern used by windows @@ -356,7 +356,7 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, marks &= vs.ms[margin].mask; - PRectangle rcMarker( + const PRectangle rcMarker( rcSelMargin.left, static_cast<XYPOSITION>(yposScreen), rcSelMargin.right, |