]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 31 Oct 2014 13:08:12 +0000 (13:08 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 31 Oct 2014 13:08:12 +0000 (13:08 +0000)
Magick++/lib/Image.cpp

index 0a10a094ef8d3fe1034a1af2740a84f1f056eb10..e095651a2ecf74a042067443ad7c1880098697e1 100644 (file)
@@ -930,18 +930,16 @@ std::string Magick::Image::formatExpression(const std::string expression)
     *text;
 
   std::string
-    result;
+    text_string;
 
   GetPPException;
   text=InterpretImageProperties(imageInfo(),image(),expression.c_str(),
     exceptionInfo);
+  std::string text_string(text);
   if (text != (char *) NULL)
-    {
-      result=std::string(text);
-      text=DestroyString(text);
-    }
+    text=DestroyString(text);
   ThrowPPException;
-  return(result);
+  return(text_string);
 }
 
 double Magick::Image::gamma(void) const