From b8202ab86ed353ebb5f6c70bde91df05a2c7a350 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 1 Oct 2022 10:19:44 +1000 Subject: 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. --- src/MarginView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/MarginView.h') 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); }; -- cgit v1.2.3