From 86fc59c515f92eb9407e5f981eab1f4d04a6d97e Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 09:16:44 +1000 Subject: Backport: Rename typeOfFold to FoldPart and make an enum class. Backport of changeset 8411:606b39f5e1f4. --- src/LineMarker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LineMarker.h') diff --git a/src/LineMarker.h b/src/LineMarker.h index db3a8f15e..00fe0b7e0 100644 --- a/src/LineMarker.h +++ b/src/LineMarker.h @@ -19,7 +19,7 @@ typedef void (*DrawLineMarkerFn)(Surface *surface, PRectangle &rcWhole, Font &fo */ class LineMarker { public: - enum typeOfFold { undefined, head, body, tail, headWithTail }; + enum class FoldPart { undefined, head, body, tail, headWithTail }; int markType = SC_MARK_CIRCLE; ColourDesired fore = ColourDesired(0, 0, 0); @@ -44,7 +44,7 @@ public: void SetXPM(const char *textForm); void SetXPM(const char *const *linesForm); void SetRGBAImage(Point sizeRGBAImage, float scale, const unsigned char *pixelsRGBAImage); - void Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharacter, typeOfFold tFold, int marginStyle) const; + void Draw(Surface *surface, PRectangle &rcWhole, Font &fontForCharacter, FoldPart part, int marginStyle) const; }; } -- cgit v1.2.3