]> Creatis software - gdcm.git/commitdiff
Fix typo
authorjpr <jpr>
Wed, 19 Jan 2005 08:57:14 +0000 (08:57 +0000)
committerjpr <jpr>
Wed, 19 Jan 2005 08:57:14 +0000 (08:57 +0000)
src/gdcmDicomDir.cxx
src/gdcmDocument.h

index f775d215aed10281da9eb3293b0b8ab084f7b307..cc41e96dd951fbe7bb27058dcc6448bd4ef11642 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/18 11:39:59 $
-  Version:   $Revision: 1.105 $
+  Date:      $Date: 2005/01/19 08:57:14 $
+  Version:   $Revision: 1.106 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -938,22 +938,20 @@ void DicomDir::SetElements(std::string const & path, VectDocument const &list)
 }
 
 /**
- * \brief   Move the content of the src SQItem to the dst SQItem
+ * \brief   Move the content of the source SQItem to the destination SQItem
  *          Only DocEntry's are moved
- * 
+ * @param dst destination SQItem
+ * @param src source SQItem
  */
 void DicomDir::MoveSQItem(SQItem *dst,SQItem *src)
 {
    DocEntry *entry;
 
-   src->Initialize();
-   entry = src->GetNextEntry();
+   entry = src->GetFirstEntry();
    while(entry)
    {
       src->RemoveEntryNoDestroy(entry);
       dst->AddEntry(entry);
-
-      src->Initialize();
       entry = src->GetNextEntry();
    }
 }
@@ -969,7 +967,7 @@ bool DicomDir::HeaderLessThan(Document *header1, Document *header2)
 
 /**
  * \brief   Get the first entry while visiting the DicomDirPatients
- * \return  The next DicomDirPatient if found, otherwhise NULL
+ * \return  The first DicomDirPatient if found, otherwhise NULL
  */ 
 DicomDirPatient *DicomDir::GetFirstEntry()
 {
index 37d2f83eb8453328678a68a2b7fb70b6f166b480..dc6ff34ce5caa9ce38296ece7e80e97cee0055bc 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/18 18:03:17 $
-  Version:   $Revision: 1.91 $
+  Date:      $Date: 2005/01/19 08:57:14 $
+  Version:   $Revision: 1.92 $
  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -99,10 +99,10 @@ public:
    virtual std::string GetEntryVR(uint16_t group, uint16_t elem);
    virtual int GetEntryLength(uint16_t group, uint16_t elem);
 
-   DocEntry *GetDocEntry(uint16_t group, uint16_t element); 
-   ValEntry *GetValEntry(uint16_t group, uint16_t element); 
-   BinEntry *GetBinEntry(uint16_t group, uint16_t element); 
-   SeqEntry *GetSeqEntry(uint16_t group, uint16_t element); 
+   DocEntry *GetDocEntry(uint16_t group, uint16_t element);
+   ValEntry *GetValEntry(uint16_t group, uint16_t element);
+   BinEntry *GetBinEntry(uint16_t group, uint16_t element);
+   SeqEntry *GetSeqEntry(uint16_t group, uint16_t element);
 
    ValEntry *ReplaceOrCreate(std::string const &value,
                              uint16_t group, uint16_t elem,