X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSQItem.cxx;h=d7c29e5e4e0aa9fee103be946285f5729072a93f;hb=refs%2Ftags%2FVersion0.6.bp;hp=332996971c115d5c79775eaa0b373cc7a3e02d11;hpb=559c3639fc5b255b36a951f352db1addead9f78f;p=gdcm.git diff --git a/src/gdcmSQItem.cxx b/src/gdcmSQItem.cxx index 33299697..d7c29e5e 100644 --- a/src/gdcmSQItem.cxx +++ b/src/gdcmSQItem.cxx @@ -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 } }