From 4d3a736d91650176b9f39bb03f86dd3c740f5835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Fri, 11 Jun 2010 13:57:49 +0200 Subject: [PATCH] features #253 & #200: Public attribute can be now defined in downcase. --- src/image/ImagePool.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/image/ImagePool.cc b/src/image/ImagePool.cc index 780542f9b5..5eda9d392d 100644 --- a/src/image/ImagePool.cc +++ b/src/image/ImagePool.cc @@ -22,6 +22,8 @@ #include #include +#define TO_UPPER(S) transform (S.begin(),S.end(),S.begin(), \ +(int(*)(int))toupper) /* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */ @@ -145,6 +147,7 @@ int ImagePool::allocate ( } img->get_template_attribute("PUBLIC", public_attr); + TO_UPPER( public_attr ); img->image_template.erase("PUBLIC"); img->get_template_attribute("ORIGINAL_PATH", original_path);