]> Creatis software - creaImageIO.git/commitdiff
warning: comparison with string literal results in unspecified behaviour
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 27 Jul 2011 14:01:00 +0000 (14:01 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 27 Jul 2011 14:01:00 +0000 (14:01 +0000)
src/creaImageIOVtkImageReader.cpp

index 0c38827d34066844d0e86983dbb87b77ea1e1f8d..4c70cbd64a4d35c4655070cbcf2005fe0de02306 100644 (file)
@@ -13,7 +13,10 @@ namespace creaImageIO{
     if (name.size() == 0) 
       {
                  const char *test =mReader->GetDescriptiveName();
-                 if(test != "")
+                 //warning: comparison with string literal results in unspecified behaviour
+                 //if(test != "")
+                 std::string emptyString("");
+                 if(test != emptyString)
                  {
                        SetName ( "toto");// mReader->GetDescriptiveName());
                  }