X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDictEntry.cxx;h=f56e73ac86e10df893bce62a92bfe4cf9b164c4d;hb=03acf3c119c6657129b8aeae8cb2205e481a105b;hp=8411e2edf27c6fc58650f0d2276edc04f1d71e02;hpb=867b8ef63054497249cc3a0138107383d60351dc;p=gdcm.git diff --git a/src/gdcmDictEntry.cxx b/src/gdcmDictEntry.cxx index 8411e2ed..f56e73ac 100644 --- a/src/gdcmDictEntry.cxx +++ b/src/gdcmDictEntry.cxx @@ -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: 2005/01/06 20:03:27 $ + Version: $Revision: 1.30 $ 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); } //----------------------------------------------------------------------------- @@ -72,7 +70,7 @@ TagKey DictEntry::TranslateToKey(uint16_t group, uint16_t element) * \ is unset then overwrite it. * @param vr New V(alue) R(epresentation) to be set. */ -void DictEntry::SetVR(TagName const & vr) +void DictEntry::SetVR(TagName const &vr) { if ( IsVRUnknown() ) {