summaryrefslogtreecommitdiff
path: root/src/fltk-images-bitmaps-xbm.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2018-03-13 17:38:01 +1100
committerJed Barber <jjbarber@y7mail.com>2018-03-13 17:38:01 +1100
commit3f59b75f1bb14d0daa7d979617fd7318aaf89c7c (patch)
treec63f66cc5f5370ba2e1e289911d57d0115992750 /src/fltk-images-bitmaps-xbm.adb
parent9293541a882a64bcb21a845b085dc0fe4c72607c (diff)
Made all constructors non-inheritable
Diffstat (limited to 'src/fltk-images-bitmaps-xbm.adb')
-rw-r--r--src/fltk-images-bitmaps-xbm.adb42
1 files changed, 23 insertions, 19 deletions
diff --git a/src/fltk-images-bitmaps-xbm.adb b/src/fltk-images-bitmaps-xbm.adb
index 6bc9a1d..13cc5dd 100644
--- a/src/fltk-images-bitmaps-xbm.adb
+++ b/src/fltk-images-bitmaps-xbm.adb
@@ -40,25 +40,29 @@ package body FLTK.Images.Bitmaps.XBM is
- function Create
- (Filename : in String)
- return XBM_Image is
- begin
- return This : XBM_Image do
- This.Void_Ptr := new_fl_xbm_image
- (Interfaces.C.To_C (Filename));
- case fl_image_fail (This.Void_Ptr) is
- when 1 =>
- raise No_Image_Error;
- when 2 =>
- raise File_Access_Error;
- when 3 =>
- raise Format_Error;
- when others =>
- null;
- end case;
- end return;
- end Create;
+ package body Forge is
+
+ function Create
+ (Filename : in String)
+ return XBM_Image is
+ begin
+ return This : XBM_Image do
+ This.Void_Ptr := new_fl_xbm_image
+ (Interfaces.C.To_C (Filename));
+ case fl_image_fail (This.Void_Ptr) is
+ when 1 =>
+ raise No_Image_Error;
+ when 2 =>
+ raise File_Access_Error;
+ when 3 =>
+ raise Format_Error;
+ when others =>
+ null;
+ end case;
+ end return;
+ end Create;
+
+ end Forge;
end FLTK.Images.Bitmaps.XBM;