diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-04-16 15:51:58 +1200 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-04-16 15:51:58 +1200 |
commit | baa3a346cde2c2c965243e554a15ed3bd6f5c7fe (patch) | |
tree | f8ec8376a6a42053e15cb9607b0fef17bb4f321d /src/grids.adb | |
parent | b3455e502f4491af22e190a14aba9565f534bb59 (diff) |
Code style improvements, constants marked as constant
Diffstat (limited to 'src/grids.adb')
-rw-r--r-- | src/grids.adb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/grids.adb b/src/grids.adb index 12f1ae4..5bf82c3 100644 --- a/src/grids.adb +++ b/src/grids.adb @@ -8,10 +8,12 @@ package body Grids is Text : in String) return Grid is begin - return This : Grid := - (FLTK.Widgets.Widget'(FLTK.Widgets.Forge.Create (X, Y, W, H, Text)) with - Cells => Square_Vector_Vectors.Empty_Vector, - Rows => 0, Cols => 0); + return This : constant Grid := + (FLTK.Widgets.Forge.Create (X, Y, W, H, Text) + with + Cells => Square_Vector_Vectors.Empty_Vector, + Rows => 0, + Cols => 0); end Create; @@ -129,3 +131,4 @@ package body Grids is end Grids; + |