diff options
author | Neil <nyamatongwe@gmail.com> | 2022-10-01 10:19:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-10-01 10:19:44 +1000 |
commit | b8202ab86ed353ebb5f6c70bde91df05a2c7a350 (patch) | |
tree | a7dd2d21176a16660cfd3c1bd54ed1ea451fd5bf /src/MarginView.h | |
parent | 64a090697a4ce072addd4f9ea6aadca5f6cd9a86 (diff) | |
download | scintilla-mirror-b8202ab86ed353ebb5f6c70bde91df05a2c7a350.tar.gz |
Hoist choosing marker variants into PartForFoldHighlight and PartForBar.
PaintOneMargin is constant so mark as const.
Extend scope of isExpanded to avoid recalculation.
This change set does not change behaviour.
Diffstat (limited to 'src/MarginView.h')
-rw-r--r-- | src/MarginView.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MarginView.h b/src/MarginView.h index a34f52e29..629d876d7 100644 --- a/src/MarginView.h +++ b/src/MarginView.h @@ -37,7 +37,7 @@ public: void DropGraphics() noexcept; void RefreshPixMaps(Surface *surfaceWindow, const ViewStyle &vsDraw); void PaintOneMargin(Surface *surface, PRectangle rc, PRectangle rcOneMargin, const MarginStyle &marginStyle, - const EditModel &model, const ViewStyle &vs); + const EditModel &model, const ViewStyle &vs) const; void PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, PRectangle rcMargin, const EditModel &model, const ViewStyle &vs); }; |