]> Creatis software - gdcm.git/blobdiff - src/gdcmDictEntry.cxx
ENH: Slightly bigger patch:
[gdcm.git] / src / gdcmDictEntry.cxx
index 8411e2edf27c6fc58650f0d2276edc04f1d71e02..bc0dddfd3dd246086632876d7c3db935d81b5aea 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDictEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/18 02:17:06 $
-  Version:   $Revision: 1.27 $
+  Date:      $Date: 2004/11/16 02:54:35 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,8 +36,8 @@ namespace gdcm
 */
 
 DictEntry::DictEntry(uint16_t group, uint16_t element,
-                     TagName vr, TagName fourth,
-                     TagName name)
+                     TagName const & vr, TagName const & fourth,
+                     TagName const & name)
 {
    Group   = group;
    Element = element;
@@ -61,9 +61,7 @@ DictEntry::DictEntry(uint16_t group, uint16_t element,
  */
 TagKey DictEntry::TranslateToKey(uint16_t group, uint16_t element)
 {
-   TagKey key = Util::Format("%04x|%04x", group , element);
-
-   return key;
+   return Util::Format("%04x|%04x", group, element);
 }
 
 //-----------------------------------------------------------------------------