From 6922a512c71af06214be677acd70b3936bb2a30c Mon Sep 17 00:00:00 2001 From: Oliver Hanraths Date: Wed, 22 May 2024 09:42:23 +0200 Subject: [PATCH] fixup! Add im7 core GetDelegates() and GetFeatures() --- imagick/magick_version.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/imagick/magick_version.go b/imagick/magick_version.go index 2beba9f..94f3e4b 100644 --- a/imagick/magick_version.go +++ b/imagick/magick_version.go @@ -12,17 +12,15 @@ import "C" import "unsafe" // Returns the ImageMagick delegates as a string constant. -func GetDelegates() (delegates string) { - csdelegates := C.GetMagickDelegates() - - return C.GoString(csdelegates) +func GetDelegates() string { + cstr := C.GetMagickDelegates() + return C.GoString(cstr) } // Returns the ImageMagick features as a string constant. -func GetFeatures() (features string) { - csfeatures := C.GetMagickFeatures() - - return C.GoString(csfeatures) +func GetFeatures() string { + cstr := C.GetMagickFeatures() + return C.GoString(cstr) } // Returns the ImageMagick API copyright as a string constant.