]> Creatis software - bbtk.git/commitdiff
avoid warning: comparison with string literal results in unspecified behaviour
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 6 Jul 2011 08:57:40 +0000 (08:57 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 6 Jul 2011 08:57:40 +0000 (08:57 +0000)
packages/vtk/src/bbvtkStructuredPointsReader.cxx

index 1c0b1822df124031386ac5d7629a1fe95c0011ed..21bfd47e81c5d91c943294c467f015b1e8f7be5d 100644 (file)
@@ -26,7 +26,10 @@ void StructuredPointsReader::Process()
 //    * TYPE is the C++ type of the input/output
 //      (the one provided in the attribute 'type' of the tag 'input')
 
-       if ( bbGetInputIn().c_str()!="")
+        //warning: comparison with string literal results in unspecified behaviour
+       //if ( bbGetInputIn().c_str()!="")
+        std::string empty("");  // JPR
+        if ( bbGetInputIn().c_str()!=empty)
        {
                spr -> SetFileName( bbGetInputIn().c_str() );
                sp = spr->GetOutput();