aboutsummaryrefslogtreecommitdiff
path: root/src/fltk-images-pixmaps-xpm.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-10-13 02:00:32 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-10-13 02:00:32 +1300
commit87671a2f2423efacd0b0c4ad0c34c244680ef565 (patch)
treeb581ee812415bd27bed09f0e0c77c4d24619afcf /src/fltk-images-pixmaps-xpm.adb
parentca99321b1f7aa54b435c73f1ec14321dbd989f16 (diff)
Changed System.Address to Integer_Address
Diffstat (limited to 'src/fltk-images-pixmaps-xpm.adb')
-rw-r--r--src/fltk-images-pixmaps-xpm.adb15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/fltk-images-pixmaps-xpm.adb b/src/fltk-images-pixmaps-xpm.adb
index 136aee9..0392a36 100644
--- a/src/fltk-images-pixmaps-xpm.adb
+++ b/src/fltk-images-pixmaps-xpm.adb
@@ -2,12 +2,7 @@
with
- Interfaces.C,
- System;
-
-use type
-
- System.Address;
+ Interfaces.C;
package body FLTK.Images.Pixmaps.XPM is
@@ -15,12 +10,12 @@ package body FLTK.Images.Pixmaps.XPM is
function new_fl_xpm_image
(F : in Interfaces.C.char_array)
- return System.Address;
+ return Storage.Integer_Address;
pragma Import (C, new_fl_xpm_image, "new_fl_xpm_image");
pragma Inline (new_fl_xpm_image);
procedure free_fl_xpm_image
- (P : in System.Address);
+ (P : in Storage.Integer_Address);
pragma Import (C, free_fl_xpm_image, "free_fl_xpm_image");
pragma Inline (free_fl_xpm_image);
@@ -30,11 +25,11 @@ package body FLTK.Images.Pixmaps.XPM is
overriding procedure Finalize
(This : in out XPM_Image) is
begin
- if This.Void_Ptr /= System.Null_Address and then
+ if This.Void_Ptr /= Null_Pointer and then
This in XPM_Image'Class
then
free_fl_xpm_image (This.Void_Ptr);
- This.Void_Ptr := System.Null_Address;
+ This.Void_Ptr := Null_Pointer;
end if;
Finalize (Pixmap (This));
end Finalize;