X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDir.cxx;h=cc41e96dd951fbe7bb27058dcc6448bd4ef11642;hb=3842922fd2263cea5f679c9d283b3b4afead35d2;hp=f775d215aed10281da9eb3293b0b8ab084f7b307;hpb=3025b0fe3000c91ea03f6f95bec1086befa12196;p=gdcm.git diff --git a/src/gdcmDicomDir.cxx b/src/gdcmDicomDir.cxx index f775d215..cc41e96d 100644 --- a/src/gdcmDicomDir.cxx +++ b/src/gdcmDicomDir.cxx @@ -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() {