]> Creatis software - gdcm.git/commitdiff
Avoid some warnings
authorjpr <jpr>
Fri, 22 Jun 2007 11:01:57 +0000 (11:01 +0000)
committerjpr <jpr>
Fri, 22 Jun 2007 11:01:57 +0000 (11:01 +0000)
Example/ToInTag.cxx
Example/exSerieHelper.cxx
Testing/TestPrintAllDocument.cxx

index ccf6bcbeb414d211837c0135fcd60e9f94bb132a..119779d11bfd39ecd50da686a05b454aea94800e 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ToInTag.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/06/04 08:51:23 $
-  Version:   $Revision: 1.13 $
+  Date:      $Date: 2007/06/22 11:01:57 $
+  Version:   $Revision: 1.14 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -615,9 +615,9 @@ int main(int argc, char *argv[])
 
          if ( GDCM_NAME_SPACE::Util::DicomStringEqual(modelName,"TrioTim") )  
          {
-            if (seriesDescription.find("90", 0) != -1)
+            if (seriesDescription.find("90", 0) != std::string::npos)
                chSessionIndex = "1";  // 90 deg -> COL
-            else if (seriesDescription.find("0", 0)!= -1)
+            else if (seriesDescription.find("0", 0)!= std::string::npos)
                chSessionIndex = "2";  // 0 deg -> ROW
             else
             {
index a2fb12efa8c2969a02401bb5689b9a5ee802dfb6..9922486ef7580a21109f1ad12d170c1db1aa95bb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exSerieHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/06/21 15:01:00 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/06/22 11:01:57 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -94,13 +94,13 @@ int main(int argc, char *argv[])
          std::cout << "GetZSpacing() of sorted SingleSerieUIDFileSet "
                    << "from GDCM_NAME_SPACE::SerieHelper: " << zspacing << std::endl;
          std::cout << " ('-1' means all the files have the same position)" << std::endl;
-         for (std::vector<GDCM_NAME_SPACE::File* >::iterator it =  l->begin();
-                                            it != l->end();
-                                          ++it)
+         for (std::vector<GDCM_NAME_SPACE::File* >::iterator it2 =  l->begin();
+                                            it2 != l->end();
+                                          ++it2)
          {
           // Just to show : GetZSpacing from a GDCM_NAME_SPACE::File may be different        
-             std::cout << (*it)->GetFileName() << " -->  GetZSpacing() from GDCM_NAME_SPACE::File : " 
-                       << (*it)->GetZSpacing() << std::endl;      
+             std::cout << (*it2)->GetFileName() << " -->  GetZSpacing() from GDCM_NAME_SPACE::File : " 
+                       << (*it2)->GetZSpacing() << std::endl;      
          }  
 
          break; // we only deal with the first one ... Why not ?
index 4fc44dc070eab7eb77374dcc3e4940cd8911d889..5b8db1d62cacd719bbe5f11cdbde9ecaa78567e6 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestPrintAllDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/06/21 16:31:02 $
-  Version:   $Revision: 1.16 $
+  Date:      $Date: 2007/06/22 11:01:58 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -45,7 +45,7 @@ int TestPrintAllDocument(int argc, char *argv[])
    int swapC;
    unsigned int j;
    std::string pixelType, photomInterp;
-   int l;
+   unsigned int l;
    l = strlen("PALETTE COLOR ");
    
    //gdcm::Debug::DebugOn();