From 533a1d46eb51db70ef38dbeaef2e67f7f11fa759 Mon Sep 17 00:00:00 2001 From: David Richardson Date: Thu, 20 Aug 2026 19:57:35 -0600 Subject: [PATCH] Address CPRulerOrientation build warning CPRulerView.j declared CPRulerOrientation's constants directly, with only a comment claiming it was a typedef. No @typedef directive existed, so the type was unknown wherever used as an ivar or parameter type. Added the missing @typedef CPRulerOrientation, matching the pattern already used for CPTextAlignment in CPText.j. --- AppKit/CPTextView/CPRulerView.j | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AppKit/CPTextView/CPRulerView.j b/AppKit/CPTextView/CPRulerView.j index d25532a90..ab0e4d3ff 100644 --- a/AppKit/CPTextView/CPRulerView.j +++ b/AppKit/CPTextView/CPRulerView.j @@ -29,11 +29,11 @@ @import "CPMenuItem.j" // Orientations matching AppKit standards -// typedef enum CPRulerOrientation -CPHorizontalRuler = 0, -CPVerticalRuler = 1, -CPRulerOrientationHorizontal = 0, -CPRulerOrientationVertical = 1 +@typedef CPRulerOrientation +CPHorizontalRuler = 0; +CPVerticalRuler = 1; +CPRulerOrientationHorizontal = 0; +CPRulerOrientationVertical = 1; @class CPRulerView; @class CPScrollView;