From 51ee13281605a6d98f79cc610d022a5c02b3318b Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 26 Oct 2021 08:52:34 +1100 Subject: Mark method const as its a reader. --- src/MarginView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/MarginView.cxx b/src/MarginView.cxx index d2aad0c39..cc243f41f 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -87,7 +87,7 @@ void DrawWrapMarker(Surface *surface, PRectangle rcPlace, XYPOSITION yBase; int yDir; XYPOSITION halfWidth; - Point At(XYPOSITION xRelative, XYPOSITION yRelative) noexcept { + Point At(XYPOSITION xRelative, XYPOSITION yRelative) const noexcept { return Point(xBase + xDir * xRelative + halfWidth, yBase + yDir * yRelative + halfWidth); } }; -- cgit v1.2.3