From 3f59b75f1bb14d0daa7d979617fd7318aaf89c7c Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 13 Mar 2018 17:38:01 +1100 Subject: Made all constructors non-inheritable --- src/fltk-images-bitmaps.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fltk-images-bitmaps.adb') diff --git a/src/fltk-images-bitmaps.adb b/src/fltk-images-bitmaps.adb index 6d80954..7fb1a51 100644 --- a/src/fltk-images-bitmaps.adb +++ b/src/fltk-images-bitmaps.adb @@ -57,7 +57,7 @@ package body FLTK.Images.Bitmaps is function Copy (This : in Bitmap; Width, Height : in Natural) - return Bitmap is + return Bitmap'Class is begin return Copied : Bitmap do Copied.Void_Ptr := fl_bitmap_copy @@ -70,7 +70,7 @@ package body FLTK.Images.Bitmaps is function Copy (This : in Bitmap) - return Bitmap is + return Bitmap'Class is begin return Copied : Bitmap do Copied.Void_Ptr := fl_bitmap_copy2 (This.Void_Ptr); -- cgit