From 3842922fd2263cea5f679c9d283b3b4afead35d2 Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 19 Jan 2005 08:57:14 +0000 Subject: [PATCH] Fix typo --- src/gdcmDicomDir.cxx | 16 +++++++--------- src/gdcmDocument.h | 12 ++++++------ 2 files changed, 13 insertions(+), 15 deletions(-) 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() { diff --git a/src/gdcmDocument.h b/src/gdcmDocument.h index 37d2f83e..dc6ff34c 100644 --- a/src/gdcmDocument.h +++ b/src/gdcmDocument.h @@ -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, -- 2.45.1