]> Creatis software - gdcm.git/commitdiff
BUG: i was shadowing another var
authormalaterre <malaterre>
Thu, 4 Nov 2004 15:08:50 +0000 (15:08 +0000)
committermalaterre <malaterre>
Thu, 4 Nov 2004 15:08:50 +0000 (15:08 +0000)
src/gdcmSQItem.cxx

index 332996971c115d5c79775eaa0b373cc7a3e02d11..d7c29e5e4e0aa9fee103be946285f5729072a93f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSQItem.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/03 20:52:13 $
-  Version:   $Revision: 1.34 $
+  Date:      $Date: 2004/11/04 15:08:50 $
+  Version:   $Revision: 1.35 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -98,15 +98,15 @@ SQItem::~SQItem()
  */
 void SQItem::Write(std::ofstream* fp, FileType filetype)
 {
-   int i;
+   int j;
    uint16_t item[4] = { 0xfffe, 0xe000, 0xffff, 0xffff };
    uint16_t itemt[4]= { 0xfffe, 0xe00d, 0xffff, 0xffff };
 
     //we force the writting of an 'Item' Start Element
     // because we want to write the Item as a 'no Length' item
-   for(i=0;i<4;++i)
+   for(j=0;j<4;++j)
    {
-      binary_write( *fp, item[i]);  // fffe e000 ffff ffff 
+      binary_write( *fp, item[j]);  // fffe e000 ffff ffff 
    }
      
    for (ListDocEntry::iterator i = DocEntries.begin();  
@@ -133,9 +133,9 @@ void SQItem::Write(std::ofstream* fp, FileType filetype)
       
     //we force the writting of an 'Item Delimitation' item
     // because we wrote the Item as a 'no Length' item
-   for(i=0;i<4;++i)
+   for(j=0;j<4;++j)
    {
-      binary_write( *fp, itemt[i]);  // fffe e000 ffff ffff 
+      binary_write( *fp, itemt[j]);  // fffe e000 ffff ffff 
    }
  
 }