]> Creatis software - gdcm.git/blobdiff - src/gdcmDefaultDicts.cxx.in
Avoid warnings on C/C++ syle comments
[gdcm.git] / src / gdcmDefaultDicts.cxx.in
index 2622cc23bae40ba19df21bcd226f67c3a5f53277..21d39605d90972db675831fec5444b7e21d4ee50 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDefaultDicts.cxx.in,v $
   Language:  C++
-  Date:      $Date: 2005/04/05 10:56:25 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2005/10/20 15:24:08 $
+  Version:   $Revision: 1.11 $
 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -44,12 +44,14 @@ static DICT_ENTRY datadir[] = {
 
 void FillDefaultDataDict(Dict *d)
 {
+   DictEntry *e;
    unsigned int i = 0;
    DICT_ENTRY n = datadir[i];
    while( n.name != 0 )
    {
-      const DictEntry e( n.group, n.element, n.vr, n.vm, n.name);
+      e = DictEntry::New( n.group, n.element, n.vr, n.vm, n.name);
       d->AddEntry( e );
+      e->Delete();
       n = datadir[++i];
    }
 }
@@ -85,7 +87,7 @@ void FillDefaultDIRDict(DicomDirElement *dde)
 {
    unsigned int i = 0;
    ELEMENT e = dataElement[i];
-   Element elem;
+   DicomElement elem;
    DicomDirType type;
    std::string strType;