diff options
Diffstat (limited to 'dmagick/Image.d')
| -rw-r--r-- | dmagick/Image.d | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d index 6b86e2f..a6758d1 100644 --- a/dmagick/Image.d +++ b/dmagick/Image.d @@ -4074,25 +4074,7 @@ class Image */ auto opDispatch(string property)() { - // Workaround for dmd bug 620. - struct Property - { - ImageRef imageRef; - - void opAssign(string value) - { - SetImageProperty(imageRef, toStringz(property), toStringz(value)); - } - - string value() - { - return to!(string)(GetImageProperty(imageRef, toStringz(property))); - } - - alias value this; - } - - return Property(imageRef); + return to!(string)(GetImageProperty(imageRef, toStringz(property))); } unittest |
